Skip to content

Commit

Permalink
chore: no more md5 checksum on published tomcat version
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlelan-mgdis committed May 24, 2024
1 parent 8eb7394 commit 6b7510b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on: push
jobs:
test:
name: Test - Units & Integrations
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
- name: Maven test
run: mvn test -B
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
FROM java:openjdk-8-jre-alpine
FROM openjdk:8-jre-alpine
MAINTAINER JLL "lelan-j@mgdis.fr"

# TOMCAT
# Expose web port
EXPOSE 8080

# Tomcat Version
ENV TOMCAT_VERSION_MAJOR 7
ENV TOMCAT_VERSION_FULL 7.0.69
ENV TOMCAT_VERSION_MAJOR 9
ENV TOMCAT_VERSION_FULL 9.0.89

# Download and install
RUN set -x \
&& apk add --no-cache su-exec \
&& apk add --update curl \
&& addgroup tomcat && adduser -s /bin/bash -D -G tomcat tomcat \
&& mkdir /opt \
&& mkdir -p /opt \
&& curl -LO https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_VERSION_MAJOR}/v${TOMCAT_VERSION_FULL}/bin/apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz \
&& curl -LO https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_VERSION_MAJOR}/v${TOMCAT_VERSION_FULL}/bin/apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \
&& md5sum -c apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \
&& gunzip -c apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz | tar -xf - -C /opt \
&& rm -f apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz apache-tomcat-${TOMCAT_VERSION_FULL}.tar.gz.md5 \
&& ln -s /opt/apache-tomcat-${TOMCAT_VERSION_FULL} /opt/tomcat \
&& rm -rf /opt/tomcat/webapps/examples /opt/tomcat/webapps/docs /opt/tomcat/webapps/manager /opt/tomcat/webapps/host-manager \
&& apk del curl \
Expand Down

0 comments on commit 6b7510b

Please sign in to comment.