Skip to content

Commit

Permalink
Merge pull request #24 from MGDIS/fix/no-more-md5
Browse files Browse the repository at this point in the history
chore: no more md5 checksum on published tomcat version
  • Loading branch information
johanlelan-mgdis authored May 24, 2024
2 parents 7d7bd5b + 23ee45e commit c87240f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ 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'
cache: maven
- name: Maven test
run: mvn test -B
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
FROM java:openjdk-8-jre-alpine
FROM openjdk:8-jre-alpine
MAINTAINER JLL "[email protected]"

# 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 unzip \
&& 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 \
# && 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 \
# && 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
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/classes/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ InMemoryServer.RepositoryThinClientUri="http://localhost:8080/lightweightcmis/br
InMemoryServer.User=test
InMemoryServer.Password=test
# InMemoryServer.TypesCreatorClass=org.apache.chemistry.opencmis.inmemory.types.DefaultTypeSystemCreator
InMemoryServer.TypeDefinitionsFile=/data/cmis/default-types.xml
InMemoryServer.TypeDefinitionsFile=/tmp/cmis/default-types.xml
InMemoryServer.Class=org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoreManagerImpl

# InMemoryServer.MemoryThreshold=10485760
persistenceDirectory=/data/cmis/default
persistenceDirectory=/tmp/cmis/default
#InMemoryServer.MaxSize=20971520
#InMemoryServer.EncryptTempFiles=false

Expand Down

0 comments on commit c87240f

Please sign in to comment.