Skip to content

Commit

Permalink
separate prod and preprod
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Apr 19, 2024
1 parent c227800 commit cb8c962
Show file tree
Hide file tree
Showing 6 changed files with 2,644 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ COPY auth /usr/share/nginx/recovery
COPY export /usr/share/nginx/export
COPY import /usr/share/nginx/import

# prod
EXPOSE 8080/tcp
EXPOSE 8081/tcp
EXPOSE 8082/tcp
EXPOSE 8083/tcp

# preprod
EXPOSE 7070/tcp
EXPOSE 7071/tcp
EXPOSE 7072/tcp
EXPOSE 7073/tcp

CMD ["nginx"]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To build:
docker build . -t frames
```

To run (mapping `[8080, 8081]` to `[18080, 18081]` because they're often busy):
To run (mapping `[8080, 8081, ...]` to `[18080, 18081, ...]` because they're often busy):
```
docker run -p18080:8080 -p18081:8081 -t frames
```
Expand All @@ -97,6 +97,9 @@ k3d cluster create frames
# Deploy to it
kubectl kustomize kustomize | kubectl --context k3d-frames apply -f-
# Be able to access locally (8080 as an example)
kubectl port-forward svc/frames 8080:8080
```

To clean things up:
Expand Down
Loading

0 comments on commit cb8c962

Please sign in to comment.