diff --git a/development.rethink.yml b/development.rethink.yml index 1b144a9f20..9c8cffa4e9 100644 --- a/development.rethink.yml +++ b/development.rethink.yml @@ -11,8 +11,6 @@ services: links: - rdb-proxy:rdb-proxy.rdb - signer - environment: - - SERVICE_NAME=notary_server ports: - "8080" - "4443:4443" @@ -32,8 +30,6 @@ services: - notarysigner links: - rdb-proxy:rdb-proxy.rdb - environment: - - SERVICE_NAME=notary_signer entrypoint: /usr/bin/env sh command: -c "sh migrations/rethink_migrate.sh && notary-signer -config=fixtures/signer-config.rethink.json" depends_on: @@ -110,4 +106,4 @@ volumes: external: false networks: rdb: - external: false \ No newline at end of file + external: false diff --git a/development.yml b/development.yml index a34c50432a..ce6641475b 100644 --- a/development.yml +++ b/development.yml @@ -5,8 +5,6 @@ server: - mysql - signer - signer:notarysigner - environment: - - SERVICE_NAME=notary_server entrypoint: /usr/bin/env sh command: -c "./migrations/migrate.sh && notary-server -config=fixtures/server-config.json" signer: @@ -14,8 +12,6 @@ signer: dockerfile: signer.Dockerfile links: - mysql - environment: - - SERVICE_NAME=notary_signer entrypoint: /usr/bin/env sh command: -c "./migrations/migrate.sh && notary-signer -config=fixtures/signer-config.json" mysql: diff --git a/docker-compose.rethink.yml b/docker-compose.rethink.yml index 8f2cdaba35..18b66c5ed2 100644 --- a/docker-compose.rethink.yml +++ b/docker-compose.rethink.yml @@ -1,7 +1,7 @@ version: "2" services: server: - build: + build: context: . dockerfile: server.Dockerfile volumes: @@ -11,8 +11,6 @@ services: links: - rdb-proxy:rdb-proxy.rdb - signer - environment: - - SERVICE_NAME=notary_server ports: - "8080" - "4443:4443" @@ -21,7 +19,7 @@ services: depends_on: - rdb-proxy signer: - build: + build: context: . dockerfile: signer.Dockerfile volumes: @@ -32,8 +30,6 @@ services: - notarysigner links: - rdb-proxy:rdb-proxy.rdb - environment: - - SERVICE_NAME=notary_signer entrypoint: /usr/bin/env sh command: -c "sh migrations/rethink_migrate.sh && notary-signer -config=fixtures/signer-config.rethink.json" depends_on: diff --git a/docker-compose.yml b/docker-compose.yml index 00be689c2e..e94e420cd7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,8 +5,6 @@ server: - mysql - signer - signer:notarysigner - environment: - - SERVICE_NAME=notary_server ports: - "8080" - "4443:4443" @@ -17,8 +15,6 @@ signer: dockerfile: signer.Dockerfile links: - mysql - environment: - - SERVICE_NAME=notary_signer entrypoint: /usr/bin/env sh command: -c "./migrations/migrate.sh && notary-signer -config=fixtures/signer-config.json" mysql: diff --git a/server.Dockerfile b/server.Dockerfile index 9103a57ccf..c620530fb5 100644 --- a/server.Dockerfile +++ b/server.Dockerfile @@ -13,6 +13,7 @@ COPY . /go/src/${NOTARYPKG} WORKDIR /go/src/${NOTARYPKG} +ENV SERVICE_NAME=notary_server EXPOSE 4443 # Install notary-server diff --git a/signer.Dockerfile b/signer.Dockerfile index fad8041ae0..8ec7b3e062 100644 --- a/signer.Dockerfile +++ b/signer.Dockerfile @@ -13,6 +13,7 @@ COPY . /go/src/${NOTARYPKG} WORKDIR /go/src/${NOTARYPKG} +ENV SERVICE_NAME=notary_signer ENV NOTARY_SIGNER_DEFAULT_ALIAS="timestamp_1" ENV NOTARY_SIGNER_TIMESTAMP_1="testpassword"