Skip to content

Commit 6117790

Browse files
authored
Merge pull request #226 from cs50/versions-dec24
Upgrade Versions
2 parents 722b407 + 167b0ea commit 6117790

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
8484
finalize:
8585
needs: [build-amd64, build-arm64]
86-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-22.04
8787
steps:
8888
- name: Log into Docker Hub
8989
uses: docker/login-action@v3

Dockerfile

+20-20
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ RUN apt update && \
2222
# http://jdk.java.net/23/
2323
RUN cd /tmp && \
2424
if [ "$BUILDARCH" = "arm64" ]; then ARCH="aarch64"; else ARCH="x64"; fi && \
25-
curl --remote-name https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_linux-${ARCH}_bin.tar.gz && \
26-
tar xzf openjdk-23_linux-${ARCH}_bin.tar.gz && \
27-
rm --force openjdk-23_linux-${ARCH}_bin.tar.gz && \
28-
mv jdk-23 /opt/jdk && \
25+
curl --remote-name https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL/openjdk-23.0.1_linux-${ARCH}_bin.tar.gz && \
26+
tar xzf openjdk-23.0.1_linux-${ARCH}_bin.tar.gz && \
27+
rm --force openjdk-23.0.1_linux-${ARCH}_bin.tar.gz && \
28+
mv jdk-23.0.1 /opt/jdk && \
2929
mkdir --parent /opt/bin && \
3030
ln --symbolic /opt/jdk/bin/* /opt/bin/ && \
3131
chmod a+rx /opt/bin/*
@@ -36,7 +36,7 @@ RUN cd /tmp && \
3636
# https://github.com/tj/n#installation
3737
RUN curl --location https://raw.githubusercontent.com/tj/n/master/bin/n --output /usr/local/bin/n && \
3838
chmod a+x /usr/local/bin/n && \
39-
n 22.6.0
39+
n 22.12.0
4040

4141

4242
# Install Node.js packages
@@ -64,16 +64,16 @@ RUN apt update && \
6464
# Install Python 3.12.x
6565
# https://www.python.org/downloads/
6666
RUN cd /tmp && \
67-
curl --remote-name https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz && \
68-
tar xzf Python-3.12.7.tgz && \
69-
rm --force Python-3.12.7.tgz && \
70-
cd Python-3.12.7 && \
67+
curl --remote-name https://www.python.org/ftp/python/3.12.8/Python-3.12.8.tgz && \
68+
tar xzf Python-3.12.8.tgz && \
69+
rm --force Python-3.12.8.tgz && \
70+
cd Python-3.12.8 && \
7171
CFLAGS="-Os" ./configure --disable-static --enable-optimizations --enable-shared --with-lto --without-tests && \
7272
./configure && \
7373
make && \
7474
make install && \
7575
cd .. && \
76-
rm --force --recursive Python-3.12.7 && \
76+
rm --force --recursive Python-3.12.8 && \
7777
ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \
7878
ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \
7979
pip3 install --no-cache-dir --upgrade pip
@@ -89,16 +89,16 @@ RUN apt update && \
8989
apt clean && \
9090
rm --force --recursive /var/lib/apt/lists/* && \
9191
cd /tmp && \
92-
curl https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.5.tar.gz --output ruby-3.3.5.tar.gz && \
93-
tar xzf ruby-3.3.5.tar.gz && \
94-
rm --force ruby-3.3.5.tar.gz && \
95-
cd ruby-3.3.5 && \
92+
curl https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.6.tar.gz --output ruby-3.3.6.tar.gz && \
93+
tar xzf ruby-3.3.6.tar.gz && \
94+
rm --force ruby-3.3.6.tar.gz && \
95+
cd ruby-3.3.6 && \
9696
if [ "$BUILDARCH" = "arm64" ]; then ASFLAGS=-mbranch-protection=pac-ret; else ASFLAGS=; fi && \
9797
ASFLAGS=${ASFLAGS} CFLAGS=-Os ./configure --disable-install-doc --enable-load-relative && \
9898
make && \
9999
make install && \
100100
cd .. && \
101-
rm --force --recursive ruby-3.3.5
101+
rm --force --recursive ruby-3.3.6
102102

103103

104104
# Install Ruby packages
@@ -117,14 +117,14 @@ RUN echo "gem: --no-document" > /etc/gemrc && \
117117
# https://www.sqlite.org/howtocompile.html#compiling_the_command_line_interface
118118
COPY shell.c.patch /tmp
119119
RUN cd /tmp && \
120-
curl --remote-name https://www.sqlite.org/2024/sqlite-amalgamation-3460100.zip && \
121-
unzip sqlite-amalgamation-3460100.zip && \
122-
rm --force sqlite-amalgamation-3460100.zip && \
123-
cd sqlite-amalgamation-3460100 && \
120+
curl --remote-name https://www.sqlite.org/2024/sqlite-amalgamation-3470200.zip && \
121+
unzip sqlite-amalgamation-3470200.zip && \
122+
rm --force sqlite-amalgamation-3470200.zip && \
123+
cd sqlite-amalgamation-3470200 && \
124124
patch shell.c < /tmp/shell.c.patch && \
125125
gcc -D HAVE_READLINE -D SQLITE_DEFAULT_FOREIGN_KEYS=1 -D SQLITE_OMIT_DYNAPROMPT=1 shell.c sqlite3.c -lpthread -ldl -lm -lreadline -lncurses -o /usr/local/bin/sqlite3 && \
126126
cd .. && \
127-
rm --force --recursive sqlite-amalgamation-3460100 && \
127+
rm --force --recursive sqlite-amalgamation-3470200 && \
128128
rm --force /tmp/shell.c.patch
129129
130130

shell.c.patch

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
30886,30888d30885
2-
< sputf(stdout, "SQLite version %s %.19s%s\n" /*extra-version-info*/
1+
33142,33145d33141
2+
< sqlite3_fprintf(stdout,
3+
< "SQLite version %s %.19s%s\n" /*extra-version-info*/
34
< "Enter \".help\" for usage hints.\n",
45
< sqlite3_libversion(), sqlite3_sourceid(), SHELL_CIO_CHAR_SET);

0 commit comments

Comments
 (0)