Skip to content

Commit

Permalink
delete config.yaml and kubeconfig.yaml from the image and mount them …
Browse files Browse the repository at this point in the history
…as volumes
  • Loading branch information
saza-ku committed Aug 21, 2024
1 parent ec1df6c commit 2692456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ services:
- PORT=1212
- KUBE_SCHEDULER_SIMULATOR_ETCD_URL=http://simulator-cluster:2379
- KUBE_APISERVER_URL=http://simulator-cluster:3131
volumes:
- ./simulator/config.yaml:/config.yaml
- ./simulator/kubeconfig.yaml:/kubeconfig.yaml
ports:
- "1212:1212"
restart: always
Expand Down
2 changes: 0 additions & 2 deletions simulator/cmd/simulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ FROM alpine:3.14.0

COPY --from=build-env /go/src/simulator/bin/simulator /simulator
RUN chmod a+x /simulator
COPY --from=build-env /go/src/simulator/config.yaml /config.yaml
COPY --from=build-env /go/src/simulator/kubeconfig.yaml /kubeconfig.yaml

EXPOSE 1212
CMD ["/simulator"]

0 comments on commit 2692456

Please sign in to comment.