Skip to content

Commit 17651a4

Browse files
authored
Merge pull request #314 from clowder-framework/log4j
Log4j
2 parents 834ca94 + 107d9fa commit 17651a4

File tree

17 files changed

+665
-135
lines changed

17 files changed

+665
-135
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
4444
elif [ "$BRANCH" == "develop" ]; then
4545
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
46-
else
46+
else
4747
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
4848
fi
4949
- uses: actions/setup-java@v1
@@ -97,7 +97,7 @@ jobs:
9797
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
9898
elif [ "$BRANCH" == "develop" ]; then
9999
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
100-
else
100+
else
101101
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
102102
fi
103103
- uses: actions/setup-java@v1
@@ -141,7 +141,7 @@ jobs:
141141
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
142142
elif [ "$BRANCH" == "develop" ]; then
143143
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
144-
else
144+
else
145145
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
146146
fi
147147
- uses: actions/setup-java@v1
@@ -164,6 +164,16 @@ jobs:
164164
VERSION: ${{ env.CLOWDER_VERSION }}
165165
BUILDNUMBER: ${{ github.run_number }}
166166
GITSHA1: ${{ github.sha }}
167+
- name: fix log4j
168+
run: |
169+
ZIPFILE=$(ls -1rt target/universal/*.zip | head -1)
170+
DIR=$(basename ${ZIPFILE} .zip)
171+
unzip -q ${ZIPFILE}
172+
for x in $(find ${DIR} -name \*.jar); do
173+
zip -d $x org/apache/log4j/net/JMSAppender.class org/apache/log4j/net/SocketServer.class | grep 'deleting:' && echo "fixed $x"
174+
done
175+
rm ${ZIPFILE}
176+
zip -r ${ZIPFILE} ${DIR}
167177
- uses: actions/upload-artifact@v2
168178
with:
169179
name: clowder.zip
@@ -207,7 +217,7 @@ jobs:
207217
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
208218
elif [ "$BRANCH" == "develop" ]; then
209219
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
210-
else
220+
else
211221
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
212222
fi
213223
- uses: actions/setup-java@v1
@@ -247,7 +257,7 @@ jobs:
247257
key: ${{ secrets.SCP_KEY }}
248258
files: "target/scala-*/api/*"
249259
target: "CATS/${{ env.CLOWDER_VERSION }}/documentation/scaladoc"
250-
- name: sphinx
260+
- name: sphinx
251261
run: |
252262
cd doc/src/sphinx/
253263
python -m pip install -r requirements.txt

.github/workflows/docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- clowder
3737
- mongo-init
3838
- monitor
39+
- elasticsearch
3940
include:
4041
- name: clowder
4142
FOLDER: "."
@@ -49,6 +50,11 @@ jobs:
4950
FOLDER: scripts/monitor
5051
IMAGE: monitor
5152
README: ""
53+
- name: elasticsearch
54+
FOLDER: scripts/elasticsearch
55+
IMAGE: elasticsearch
56+
README: ""
57+
5258
steps:
5359
- uses: actions/checkout@v2
5460

@@ -75,7 +81,7 @@ jobs:
7581
elif [ "$BRANCH" == "develop" ]; then
7682
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
7783
echo "CLOWDER_TAGS=develop" >> $GITHUB_ENV
78-
else
84+
else
7985
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
8086
echo "CLOWDER_TAGS=" >> $GITHUB_ENV
8187
fi

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 1.19.5 - 2022-01-21
8+
9+
### Fixed
10+
- Removed JMSAppender and SocketServer from log4j.
11+
- Cleaned up getting started documentation.
12+
713
## 1.19.4 - 2021-11-11
814

915
### Fixed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Following is a list of contributors in alphabetical order:
1616
- Inna Zharnitsky
1717
- Jim Myers
1818
- Jong Lee
19+
- Kastan Day
1920
- Kaveh Karimi-Asli
2021
- Kenton McHenry
2122
- Luigi Marini

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ RUN rm -rf target/universal/clowder-*.zip clowder clowder-* \
3030
&& ./sbt dist \
3131
&& unzip -q target/universal/clowder-*.zip \
3232
&& mv clowder-* clowder \
33+
&& apk add --no-cache zip \
34+
&& for x in $(find clowder -name \*.jar); do \
35+
zip -d $x org/apache/log4j/net/JMSAppender.class org/apache/log4j/net/SocketServer.class | grep 'deleting:' && echo "fixed $x"; \
36+
done; \
37+
echo "removed JMSAppender and SocketServer" \
3338
&& mkdir -p clowder/custom clowder/logs
3439

3540
# ----------------------------------------------------------------------
23.3 KB
Loading
17.3 KB
Loading
7.42 KB
Loading
21.6 KB
Loading

doc/src/sphinx/admin/installing.rst

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)