Skip to content

Commit 24846c9

Browse files
authored
Merge pull request #1371 from softrams/modernization
Modernization for Bulwark will include updated packages and ORM corrections.
2 parents f323e77 + 84e6732 commit 24846c9

40 files changed

+32960
-23533
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3+
#angular
4+
/frontend/.angular
5+
36
# compiled output
47
/dist
58
/tmp

bulwark_base/Dockerfile

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@
22
# Maintained by Bill Jones
33

44
# Start from Alpine Linux for smaller footprint
5-
FROM alpine:3.12.0
5+
FROM alpine:latest
66

77
# Environmental Items
8-
ENV NODE_VERSION=14.17.0 \
9-
TYPESCRIPT_VERSION=4.0.2 \
10-
PUPPETEER_VERSION=5.2.1 \
8+
ENV NODE_VERSION=20.14.0 \
9+
TYPESCRIPT_VERSION=10.9.2 \
10+
PUPPETEER_VERSION=23.2.0 \
1111
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
1212
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
1313

1414
# View template at https://github.com/nodejs/docker-node/blob/master/Dockerfile-alpine.template
1515
# Setup Bulwark Container User
16-
RUN addgroup -S bulwark && adduser -S bulwark -G bulwark
16+
RUN addgroup -S bulwark && adduser -S bulwark -G bulwark -s /bin/sh -D bulwark
1717

1818
# Update Image
1919
RUN apk upgrade --no-cache -U
2020

2121
# Install Required Packages to Build NodeJS and Puppeter Items
22-
RUN apk add --no-cache curl make gcc g++ python3 linux-headers binutils-gold gnupg libstdc++ chromium \
22+
RUN apk add --no-cache --virtual .build-deps-full curl make gcc g++ python3 linux-headers binutils-gold gnupg libstdc++ chromium \
2323
fontconfig udev ttf-freefont fontconfig pango-dev libxcursor libxdamage cups-libs dbus-libs libxrandr \
24-
libxscrnsaver libc6-compat nss freetype freetype-dev harfbuzz ca-certificates
24+
libxscrnsaver libc6-compat nss freetype freetype-dev harfbuzz ca-certificates libgcc py-setuptools
2525

2626
# Ingest the GPG Keys from https://github.com/nodejs/node#release-keys
27-
RUN for server in pool.sks-keyservers.net keyserver.pgp.com ha.pool.sks-keyservers.net; do \
27+
RUN for server in keys.openpgp.org pool.sks-keyservers.net keyserver.pgp.com ha.pool.sks-keyservers.net; do \
2828
gpg --keyserver $server --recv-keys \
2929
4ED778F539E3634C779C87C6D7062848A1AB005C \
30-
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
31-
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
30+
141F07595B7B3FFE74309A937405533BE57C7D57 \
31+
74F12602B6F1C4E913FAA37AD3A89613643B6201 \
32+
DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \
33+
CC68F5A3106FF448322E48ED27F5E38D5B0A215F \
3234
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
33-
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
35+
890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \
3436
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
35-
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
36-
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
3737
108F52B48DB57BB0CC439B2997B01419BD92F80A \
38-
B9E2F5981AA6E0CD28160D9FF13993A75599653C && break; \
38+
A363A499291CBBC940DD62E41F10027AF002F8B0 && break; \
3939
done
4040

4141
# Perform nodejs installation
@@ -50,16 +50,15 @@ RUN curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE
5050
&& ./configure \
5151
&& make -j$(getconf _NPROCESSORS_ONLN) V= \
5252
&& make install \
53+
&& apk del .build-deps-full \
5354
&& cd .. \
5455
&& rm -Rf "node-v$NODE_VERSION" \
55-
&& rm "node-v$NODE_VERSION.tar.gz" SHASUMS256.txt.sig SHASUMS256.txt
56-
56+
&& rm "node-v$NODE_VERSION.tar.gz" SHASUMS256.txt.sig SHASUMS256.txt \
5757
# Cleanup
5858
RUN rm -f "node-v$NODE_VERSION" \
5959
# smoke tests
6060
&& node --version \
61-
&& npm --version
62-
61+
&& npm --version \
6362
# Setup for launch control of Bulwark
6463
WORKDIR /
6564
COPY bulwark-entrypoint /usr/local/bin/

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ services:
4646
&& npm run start"
4747
4848
bulwark-db:
49-
image: mysql:5.7.31
49+
image: mysql:9.0.1 # 7.7.31
5050
container_name: bulwark_db
5151
environment:
5252
MYSQL_DATABASE: '${DB_NAME}'

frontend/e2e/tsconfig.e2e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../out-tsc/app",
55
"module": "commonjs",
6-
"target": "es5",
6+
"target": "es6",
77
"types": [
88
"jasmine",
99
"jasminewd2",

0 commit comments

Comments
 (0)