Skip to content

Commit f0311bc

Browse files
authored
Merge pull request #158 from clux/fix-update-and-update
fix update and bump sccache, rustup and sqlite
2 parents be4c4eb + a1faedf commit f0311bc

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y \
3939
ARG AARCH
4040
# Install rust using rustup
4141
ARG CHANNEL
42-
ENV RUSTUP_VER="1.27.1" \
42+
ENV RUSTUP_VER="1.28.2" \
4343
RUST_ARCH="${AARCH}-unknown-linux-gnu" \
4444
CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
4545

@@ -55,9 +55,9 @@ RUN chmod a+X /root
5555
# Convenience list of versions and variables for compilation later on
5656
# This helps continuing manually if anything breaks.
5757
ENV ZLIB_VER="1.3.1" \
58-
SQLITE_VER="3490100" \
58+
SQLITE_VER="3490200" \
5959
PROTOBUF_VER="31.0" \
60-
SCCACHE_VER="0.9.1" \
60+
SCCACHE_VER="0.10.0" \
6161
CC=musl-gcc \
6262
PREFIX=/musl \
6363
PATH=/usr/local/bin:/root/.cargo/bin:$PATH \

update_libs.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,19 @@ def rustup_version():
8484
print('{}_VER="{}"'.format(prefix, PACKAGES[prefix]))
8585

8686
# Update Dockerfiles
87-
for arch in ["x86_64", "arm64"]:
88-
fname = f'./Dockerfile.{arch}'
89-
# Open a different file for the destination to update Dockerfile atomically
90-
src = open(fname, 'r')
91-
dst = open(f'{fname}.new', 'w')
92-
93-
# Iterate over each line in Dockerfile, replacing any *_VER variables with the most recent version
94-
for line in src:
95-
for prefix in PACKAGES:
96-
version = PACKAGES[prefix]
97-
line = re.sub(r'({}_VER=)\S+'.format(prefix), r'\1"{}"'.format(version), line)
98-
dst.write(line)
99-
100-
# Close original and new Dockerfile then overwrite the old with the new
101-
src.close()
102-
dst.close()
103-
os.rename(f'{fname}.new', fname)
87+
fname = './Dockerfile'
88+
# Open a different file for the destination to update Dockerfile atomically
89+
src = open(fname, 'r')
90+
dst = open(f'{fname}.new', 'w')
91+
92+
# Iterate over each line in Dockerfile, replacing any *_VER variables with the most recent version
93+
for line in src:
94+
for prefix in PACKAGES:
95+
version = PACKAGES[prefix]
96+
line = re.sub(r'({}_VER=)\S+'.format(prefix), r'\1"{}"'.format(version), line)
97+
dst.write(line)
98+
99+
# Close original and new Dockerfile then overwrite the old with the new
100+
src.close()
101+
dst.close()
102+
os.rename(f'{fname}.new', fname)

0 commit comments

Comments
 (0)