Commit 56fe3793 authored by Mark Tyneway's avatar Mark Tyneway Committed by Kelvin Fichter

ops: use alpine python3 in deployer

The dockerfile was failing on the step due to `python` no longer
existing in the alpinelinux archives. This commit updates the
version of `python` to `python3` so that the deployer image
can build properly. Also update the integration-tests image
to use python3 and the deployer entrypoint script to use python3

```
 > [ethereumoptimism/deployer:latest stage-1  2/13] RUN apk add --no-cache git curl python bash jq:
124 2.190 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
124 2.170 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
124 2.803 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
124 2.783 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
124 6.396 ERROR: unable to select packages:
124 6.416 ERROR: unable to select packages:
124 6.431   python (no such package):
124 6.431     required by: world[python]
124 6.451   python (no such package):
124 6.451     required by: world[python]
```
parent 4c45443e
---
'@eth-optimism/contracts': patch
---
Update the `deployer` docker image to build with python3
......@@ -4,7 +4,7 @@ FROM ${LOCAL_REGISTRY}/ethereumoptimism/builder:${BUILDER_TAG} AS builder
FROM node:14-alpine
RUN apk add --no-cache git curl python bash jq
RUN apk add --no-cache git curl python3 bash jq
WORKDIR /opt/optimism/
......
......@@ -4,7 +4,7 @@ FROM ${LOCAL_REGISTRY}/ethereumoptimism/builder:${BUILDER_TAG} AS builder
FROM node:14-alpine
RUN apk add --no-cache git curl python bash jq
RUN apk add --no-cache git curl python3 bash jq
WORKDIR /opt/optimism/
......
......@@ -38,6 +38,6 @@ fi
yarn run build:dump
# service the addresses and dumps
cd ./dist/dumps
exec python -c \
'import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(("0.0.0.0", 8081), shs.SimpleHTTPRequestHandler).serve_forever()'
python3 -m http.server \
--bind "0.0.0.0" 8081 \
--directory ./dist/dumps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment