-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Dockerfiles for Go 1.22.5 and Go 1.23.0, and Java OpenJDK 17
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 | ||
|
||
RUN curl -O https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz && \ | ||
tar -xvf go1.22.5.linux-amd64.tar.gz && \ | ||
mv go /usr/local && \ | ||
rm go1.22.5.linux-amd64.tar.gz && \ | ||
mkdir -p /go/bin && \ | ||
echo 'export GOPATH=/go' >> /home/sealos/.bashrc && \ | ||
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /home/sealos/.bashrc && \ | ||
echo 'export GOPATH=/go' >> /root/.bashrc && \ | ||
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \ | ||
chmod -R 777 /go | ||
|
||
ENV GOPATH=/go | ||
ENV PATH=$PATH:/usr/local/go/bin:/go/bin | ||
|
||
RUN mkdir /root/.sealos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 | ||
|
||
RUN curl -O https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz && \ | ||
tar -xvf go1.23.0.linux-amd64.tar.gz && \ | ||
mv go /usr/local && \ | ||
rm go1.23.0.linux-amd64.tar.gz && \ | ||
mkdir -p /go/bin && \ | ||
echo 'export GOPATH=/go' >> /home/sealos/.bashrc && \ | ||
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /home/sealos/.bashrc && \ | ||
echo 'export GOPATH=/go' >> /root/.bashrc && \ | ||
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \ | ||
chmod -R 777 /go | ||
|
||
ENV GOPATH=/go | ||
ENV PATH=$PATH:/usr/local/go/bin:/go/bin | ||
|
||
RUN mkdir /root/.sealos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y wget && \ | ||
wget https://download.java.net/openjdk/jdk17/ri/openjdk-17+35_linux-x64_bin.tar.gz && \ | ||
mkdir /usr/lib/jvm && \ | ||
tar -xvf openjdk-17+35_linux-x64_bin.tar.gz -C /usr/lib/jvm && \ | ||
mv /usr/lib/jvm/jdk-17 /usr/lib/jvm/java-17-openjdk-amd64 && \ | ||
rm openjdk-17+35_linux-x64_bin.tar.gz && \ | ||
curl -o /tmp/apache-maven-3.8.6-bin.tar.gz https://archive.apache.org/dist/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz && \ | ||
mkdir -p /opt/maven && \ | ||
tar -xzf /tmp/apache-maven-3.8.6-bin.tar.gz -C /opt/maven && \ | ||
ln -s /opt/maven/apache-maven-3.8.6 /opt/maven/latest && \ | ||
ln -s /opt/maven/latest/bin/mvn /usr/bin/mvn && \ | ||
rm /tmp/apache-maven-3.8.6-bin.tar.gz && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /home/sealos/.bashrc && \ | ||
echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64' >> /home/sealos/.bashrc | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 | ||
ENV PATH=$PATH:$JAVA_HOME/bin | ||
|
||
RUN mkdir /root/.sealos |