From e807f497bf5f837b687d8fcb1637127104d70e22 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 5 Sep 2019 12:06:03 +0200 Subject: [PATCH] Update files for new ocis naming --- .github/settings.yml | 4 ++-- Makefile | 2 +- README.md | 20 ++++++++++---------- changelog/TEMPLATE | 4 ++-- changelog/unreleased/initial-release.md | 2 +- cmd/{reva-hyper => ocis}/main.go | 2 +- docker/Dockerfile.linux.amd64 | 4 ++-- docker/Dockerfile.linux.arm | 4 ++-- docker/Dockerfile.linux.arm64 | 4 ++-- docker/manifest.tmpl | 8 ++++---- go.mod | 8 ++++---- go.sum | 9 ++++++--- pkg/command/command.go | 12 +++++++----- pkg/command/ocs.go | 15 +++++++++++++++ pkg/command/phoenix.go | 2 +- pkg/command/webdav.go | 15 +++++++++++++++ 16 files changed, 75 insertions(+), 40 deletions(-) rename cmd/{reva-hyper => ocis}/main.go (71%) create mode 100644 pkg/command/ocs.go create mode 100644 pkg/command/webdav.go diff --git a/.github/settings.yml b/.github/settings.yml index ef82228b8..4fe9ffbc9 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -1,6 +1,6 @@ repository: - name: reva-hyper - description: :atom_symbol: Provide reva as single binary + name: ocis + description: :atom_symbol: ownCloud Infinit Scale stack homepage: topics: reva, ocis diff --git a/Makefile b/Makefile index 6e5270336..0c427fd45 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SHELL := bash -NAME := reva-hyper +NAME := ocis IMPORT := github.com/owncloud/$(NAME) BIN := bin DIST := dist diff --git a/README.md b/README.md index 5602248f1..ff737a5ad 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,29 @@ -# Reva: Hyper +# ownCloud Infinit Scale -[![Build Status](https://cloud.drone.io/api/badges/owncloud/reva-hyper/status.svg)](https://cloud.drone.io/owncloud/reva-hyper) +[![Build Status](https://cloud.drone.io/api/badges/owncloud/ocis/status.svg)](https://cloud.drone.io/owncloud/ocis) [![Gitter chat](https://badges.gitter.im/cs3org/reva.svg)](https://gitter.im/cs3org/reva) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dc97ddfa167641d8b107e9b618823c71)](https://www.codacy.com/app/owncloud/reva-hyper?utm_source=github.com&utm_medium=referral&utm_content=owncloud/reva-hyper&utm_campaign=Badge_Grade) -[![Go Doc](https://godoc.org/github.com/owncloud/reva-hyper?status.svg)](http://godoc.org/github.com/owncloud/reva-hyper) -[![Go Report](http://goreportcard.com/badge/github.com/owncloud/reva-hyper)](http://goreportcard.com/report/github.com/owncloud/reva-hyper) -[![](https://images.microbadger.com/badges/image/owncloud/reva-hyper.svg)](http://microbadger.com/images/owncloud/reva-hyper "Get your own image badge on microbadger.com") +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dc97ddfa167641d8b107e9b618823c71)](https://www.codacy.com/app/owncloud/ocis?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Grade) +[![Go Doc](https://godoc.org/github.com/owncloud/ocis?status.svg)](http://godoc.org/github.com/owncloud/ocis) +[![Go Report](http://goreportcard.com/badge/github.com/owncloud/ocis)](http://goreportcard.com/report/github.com/owncloud/ocis) +[![](https://images.microbadger.com/badges/image/owncloud/ocis.svg)](http://microbadger.com/images/owncloud/ocis "Get your own image badge on microbadger.com") **This project is under heavy development, it's not in a working state yet!** ## Install -You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/reva/hyper/). +You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/ocis/ocis/). ## Development Make sure you have a working Go environment, for further reference or a guide take a look at the [install instructions](http://golang.org/doc/install.html). This project requires Go >= v1.11. ```console -git clone https://github.com/owncloud/reva-hyper.git -cd reva-hyper +git clone https://github.com/owncloud/ocis.git +cd ocis make generate build -./bin/reva-hyper -h +./bin/ocis -h ``` ## Security diff --git a/changelog/TEMPLATE b/changelog/TEMPLATE index 1201b06df..15af9725e 100644 --- a/changelog/TEMPLATE +++ b/changelog/TEMPLATE @@ -7,5 +7,5 @@ The text in the paragraphs is written in past tense. The last section is a list of issue URLs, PR URLs and other URLs. The first issue ID (or the first PR ID, in case there aren't any issue links) is used as the primary ID. -https://github.com/owncloud/reva-hyper/issues/1234 -https://github.com/owncloud/reva-hyper/pull/55555 +https://github.com/owncloud/ocis/issues/1234 +https://github.com/owncloud/ocis/pull/55555 diff --git a/changelog/unreleased/initial-release.md b/changelog/unreleased/initial-release.md index 7621ceda5..a844d4cc0 100644 --- a/changelog/unreleased/initial-release.md +++ b/changelog/unreleased/initial-release.md @@ -3,4 +3,4 @@ Change: Initial release of basic version Just prepared an initial basic version which simply embeds the minimum of required services in the context of the ownCloud Infinite Scale project. -https://github.com/owncloud/reva-hyper/issues/2 +https://github.com/owncloud/ocis/issues/2 diff --git a/cmd/reva-hyper/main.go b/cmd/ocis/main.go similarity index 71% rename from cmd/reva-hyper/main.go rename to cmd/ocis/main.go index bb5c844a1..b8bcc7482 100644 --- a/cmd/reva-hyper/main.go +++ b/cmd/ocis/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/owncloud/reva-hyper/pkg/command" + "github.com/owncloud/ocis/pkg/command" ) func main() { diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 35d1ecaab..6c38edda6 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -10,7 +10,7 @@ LABEL maintainer="ownCloud GmbH " \ org.label-schema.vendor="ownCloud GmbH" \ org.label-schema.schema-version="1.0" -ENTRYPOINT ["/usr/bin/reva-hyper"] +ENTRYPOINT ["/usr/bin/ocis"] CMD ["server"] -COPY bin/reva-hyper /usr/bin/reva-hyper +COPY bin/ocis /usr/bin/ocis diff --git a/docker/Dockerfile.linux.arm b/docker/Dockerfile.linux.arm index 7af01b7eb..46b9988db 100644 --- a/docker/Dockerfile.linux.arm +++ b/docker/Dockerfile.linux.arm @@ -10,7 +10,7 @@ LABEL maintainer="ownCloud GmbH " \ org.label-schema.vendor="ownCloud GmbH" \ org.label-schema.schema-version="1.0" -ENTRYPOINT ["/usr/bin/reva-hyper"] +ENTRYPOINT ["/usr/bin/ocis"] CMD ["server"] -COPY bin/reva-hyper /usr/bin/reva-hyper +COPY bin/ocis /usr/bin/ocis diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index 3522337c4..925a91931 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -10,7 +10,7 @@ LABEL maintainer="ownCloud GmbH " \ org.label-schema.vendor="ownCloud GmbH" \ org.label-schema.schema-version="1.0" -ENTRYPOINT ["/usr/bin/reva-hyper"] +ENTRYPOINT ["/usr/bin/ocis"] CMD ["server"] -COPY bin/reva-hyper /usr/bin/reva-hyper +COPY bin/ocis /usr/bin/ocis diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl index bb46870e8..94155580c 100644 --- a/docker/manifest.tmpl +++ b/docker/manifest.tmpl @@ -1,4 +1,4 @@ -image: owncloud/reva-hyper:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} {{#if build.tags}} tags: {{#each build.tags}} @@ -6,16 +6,16 @@ tags: {{/each}} {{/if}} manifests: - - image: owncloud/reva-hyper:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + - image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 platform: architecture: amd64 os: linux - - image: owncloud/reva-hyper:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + - image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 platform: architecture: arm64 variant: v8 os: linux - - image: owncloud/reva-hyper:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + - image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm platform: architecture: arm variant: v6 diff --git a/go.mod b/go.mod index 10638d14a..eca5a2333 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ -module github.com/owncloud/reva-hyper +module github.com/owncloud/ocis go 1.12 require ( - github.com/mitchellh/gox v1.0.1 // indirect - github.com/owncloud/reva-phoenix v0.0.0-20190904081830-66facde60aab - github.com/restic/calens v0.0.0-20190419101620-10f36cb4a529 // indirect + github.com/owncloud/ocis-ocs v0.0.0-20190905101159-0d7ed8b013a2 + github.com/owncloud/ocis-phoenix v0.0.0-20190905101144-daaf1e6ddb5e + github.com/owncloud/ocis-webdav v0.0.0-20190905101156-4d74712e7d46 github.com/rs/zerolog v1.15.0 github.com/spf13/cobra v0.0.5 github.com/spf13/viper v1.4.0 diff --git a/go.sum b/go.sum index a559846f2..d48a71729 100644 --- a/go.sum +++ b/go.sum @@ -69,8 +69,12 @@ github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQz github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/owncloud/reva-phoenix v0.0.0-20190904081830-66facde60aab h1:EnukxI1IQyXvQn8skaPSUCizsbOGVxHYc4N6IcES/38= -github.com/owncloud/reva-phoenix v0.0.0-20190904081830-66facde60aab/go.mod h1:KMSjvB329p95Ll2mEiLcu8DBV3FMMrxHcwMvv7rrPe4= +github.com/owncloud/ocis-ocs v0.0.0-20190905101159-0d7ed8b013a2 h1:jAvWtD0rLmJ2pq9i1GVNEFb9UbCZLUQljOyNhilFuGs= +github.com/owncloud/ocis-ocs v0.0.0-20190905101159-0d7ed8b013a2/go.mod h1:KqpOs72OzkwytfDulr5OpuUqb2MQjs9TV1of2H7cH70= +github.com/owncloud/ocis-phoenix v0.0.0-20190905101144-daaf1e6ddb5e h1:/OjMEYwI5B8RVnIGnS0W2WReECPkGG9CUJ1U2++V9yg= +github.com/owncloud/ocis-phoenix v0.0.0-20190905101144-daaf1e6ddb5e/go.mod h1:RtYBUWmccDT4I3qMU3Zt9CjO1e6NHHyXi7Pfypbcpo4= +github.com/owncloud/ocis-webdav v0.0.0-20190905101156-4d74712e7d46 h1:CMDPOqDyxjBOugqrpuEsSKMi7l78a0WEG68BuscdAGM= +github.com/owncloud/ocis-webdav v0.0.0-20190905101156-4d74712e7d46/go.mod h1:sq2p6BpRU8kklI7WgT2yUj2/IQXrJvPeBDMwHOmUuYA= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -85,7 +89,6 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/restic/calens v0.0.0-20190419101620-10f36cb4a529 h1:TPB3vbGNwppek0lcfpKG8rVRtvr5D78d/1MnlbfNfgA= github.com/restic/calens v0.0.0-20190419101620-10f36cb4a529/go.mod h1:I3AyHROuWXtWtZtI5ApjLbnN0si15sWvPQO7ul4gDow= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= diff --git a/pkg/command/command.go b/pkg/command/command.go index 20276e373..c22e0cc0b 100644 --- a/pkg/command/command.go +++ b/pkg/command/command.go @@ -4,17 +4,17 @@ import ( "os" "strings" - "github.com/owncloud/reva-hyper/pkg/version" + "github.com/owncloud/ocis/pkg/version" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/spf13/viper" ) -// Root is the entry point for the reva-phoenix command. +// Root is the entry point for the ocis-phoenix command. func Root() *cobra.Command { cmd := &cobra.Command{ - Use: "reva-hyper", + Use: "ocis", Short: "ownCloud infinite scale stack", Long: ``, Version: version.String, @@ -40,6 +40,8 @@ func Root() *cobra.Command { viper.BindEnv("log.color", "HYPER_LOG_COLOR") cmd.AddCommand(Phoenix()) + cmd.AddCommand(Webdav()) + cmd.AddCommand(Ocs()) cmd.AddCommand(Health()) return cmd @@ -76,8 +78,8 @@ func setupLogger() { func setupConfig() { viper.SetConfigName("hyper") - viper.AddConfigPath("/etc/reva") - viper.AddConfigPath("$HOME/.reva") + viper.AddConfigPath("/etc/ocis") + viper.AddConfigPath("$HOME/.ocis") viper.AddConfigPath("./config") if err := viper.ReadInConfig(); err != nil { diff --git a/pkg/command/ocs.go b/pkg/command/ocs.go new file mode 100644 index 000000000..bb7164c6c --- /dev/null +++ b/pkg/command/ocs.go @@ -0,0 +1,15 @@ +package command + +import ( + ocs "github.com/owncloud/ocis-ocs/pkg/command" + "github.com/spf13/cobra" +) + +// Ocs is the entry point for the ocs command. +func Ocs() *cobra.Command { + cmd := ocs.Server() + cmd.Use = "ocs" + cmd.Short = "Start ocs server" + + return cmd +} diff --git a/pkg/command/phoenix.go b/pkg/command/phoenix.go index 149621856..ff1e3ee36 100644 --- a/pkg/command/phoenix.go +++ b/pkg/command/phoenix.go @@ -1,7 +1,7 @@ package command import ( - phoenix "github.com/owncloud/reva-phoenix/pkg/command" + phoenix "github.com/owncloud/ocis-phoenix/pkg/command" "github.com/spf13/cobra" ) diff --git a/pkg/command/webdav.go b/pkg/command/webdav.go new file mode 100644 index 000000000..4b9d215aa --- /dev/null +++ b/pkg/command/webdav.go @@ -0,0 +1,15 @@ +package command + +import ( + webdav "github.com/owncloud/ocis-webdav/pkg/command" + "github.com/spf13/cobra" +) + +// Webdav is the entry point for the webdav command. +func Webdav() *cobra.Command { + cmd := webdav.Server() + cmd.Use = "webdav" + cmd.Short = "Start webdav server" + + return cmd +}