Skip to content

Commit

Permalink
[DigitalOcean Deploy] fix docker building and k8s config
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 11, 2024
1 parent c326281 commit c713f86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
run: |
echo "Docker image has been successfully built and pushed to DockerHub."
echo "You can pull the latest image using:"
echo "docker pull starcoin/starcoin_dag_inspector:latest"
echo "docker pull starcoin/starcoin_dag_inspector:latest"
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ ARG REACT_APP_API_ADDRESS
ARG REACT_APP_KATNIP_ADDRESS
ARG REACT_APP_STARCOIN_LIVE_ADDRESS
ARG REACT_APP_SUPPORT_STARCOIN_NETWORK

ENV REACT_APP_API_ADDRESS=${REACT_APP_API_ADDRESS}
ENV REACT_APP_EXPLORER_ADDRESS=${REACT_APP_EXPLORER_ADDRESS}
ENV REACT_APP_STARCOIN_LIVE_ADDRESS=${REACT_APP_STARCOIN_LIVE_ADDRESS}
ENV REACT_APP_SUPPORT_STARCOIN_NETWORK=${REACT_APP_SUPPORT_STARCOIN_NETWORK}

RUN REACT_APP_API_ADDRESS=${REACT_APP_API_ADDRESS} \
REACT_APP_KATNIP_ADDRESS=${REACT_APP_KATNIP_ADDRESS} \
REACT_APP_STARCOIN_LIVE_ADDRESS=${REACT_APP_STARCOIN_LIVE_ADDRESS} \
Expand Down
14 changes: 2 additions & 12 deletions kube/starcoin-dag-inspector-vega-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,9 @@ spec:
spec:
containers:
- name: react-app
image: starcoin/starcoin_explorer:latest
image: starcoin/starcoin_dag_inspector:latest
ports:
- containerPort: 80
env:
- name: REACT_APP_API_URL
value: https://doapi.stcscan.io/v2/dag-inspector
- name: REACT_APP_EXPLORER_ADDRESS
value: https://do.stcscan.io
- name: REACT_APP_STARCOIN_LIVE_ADDRESS
value: https://do.stcscan.io
- name: REACT_APP_SUPPORT_STARCOIN_NETWORK
value: main,barnard,proxima,halley,vega

---
apiVersion: v1
kind: Service
Expand All @@ -39,6 +29,6 @@ spec:
ports:
- port: 80
targetPort: 80
nodePort: 33000
nodePort: 31100
selector:
app: starcoin-dag-inspector

0 comments on commit c713f86

Please sign in to comment.