Skip to content

Commit

Permalink
Use client v1.0.0, build it during docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Oct 31, 2019
1 parent d48fc3b commit f6ade15
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.demo
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LAYMAN_CLIENT_URL=http://layman_client:3000/client/

# client
LAYMAN_CLIENT_PUBLIC_URL=http://localhost/client/
LAYMAN_CLIENT_VERSION=c4f35bcd57c7ed7d1f0f8a63fff29183e77d9922
LAYMAN_CLIENT_VERSION=v1.0.0


##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ LAYMAN_CLIENT_URL=http://layman_client:3000/client/

# client
LAYMAN_CLIENT_PUBLIC_URL=http://localhost:3000/client/
LAYMAN_CLIENT_VERSION=c4f35bcd57c7ed7d1f0f8a63fff29183e77d9922
LAYMAN_CLIENT_VERSION=v1.0.0


##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LAYMAN_TIMGEN_URL=http://hslayers:8080/
LAYMAN_CLIENT_URL=http://layman_client_test:3000/client/

# client
LAYMAN_CLIENT_VERSION=c4f35bcd57c7ed7d1f0f8a63fff29183e77d9922
LAYMAN_CLIENT_VERSION=v1.0.0


##############################################################################
Expand Down
3 changes: 2 additions & 1 deletion client/docker/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ RUN test -n "LAYMAN_CLIENT_VERSION"
RUN wget "https://github.com/jirik/layman-test-client/archive/$LAYMAN_CLIENT_VERSION.tar.gz" -O client.tar.gz && \
tar -xvf client.tar.gz --strip 1 && \
rm client.tar.gz && \
npm ci
npm ci && \
npm run build

2 changes: 1 addition & 1 deletion docker-compose.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ services:
args:
- LAYMAN_CLIENT_VERSION=${LAYMAN_CLIENT_VERSION}
image: layman_client:latest
command: sh -c "npm run build && npm start"
command: sh -c "npm start"
env_file:
- .env
# ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ services:
args:
- LAYMAN_CLIENT_VERSION=${LAYMAN_CLIENT_VERSION}
image: layman_client:latest
command: sh -c "npm run build && npm start"
command: sh -c "npm start"
env_file:
- .env
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ services:
args:
- LAYMAN_CLIENT_VERSION=${LAYMAN_CLIENT_VERSION}
image: layman_client_test:latest
command: sh -c "npm run build && npm start"
command: sh -c "npm start"
env_file:
- .env.test

0 comments on commit f6ade15

Please sign in to comment.