Skip to content

Commit

Permalink
update: bumped versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Volkov committed Dec 17, 2021
1 parent f71f2d9 commit cddcace
Show file tree
Hide file tree
Showing 6 changed files with 3,326 additions and 1,112 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
password: ${{ steps.secrets.outputs.docker_password }}

- name: Build Docker images
uses: hiberbee/github-action-pipelines@1.14.0
uses: hiberbee/github-action-skaffold@1.14.0
with:
command: build
profile: release
Expand Down
7 changes: 4 additions & 3 deletions images/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /usr/local/src
COPY app .
RUN yarn

FROM summerwind/actions-runner-dind:v2.284.0-ubuntu-20.04
FROM summerwind/actions-runner-dind:v2.285.1-ubuntu-20.04 AS default
LABEL org.opencontainers.image.authors="BN Enginseers <[email protected]>" \
org.opencontainers.image.url="https://github.com/bn-digital/docker" \
org.opencontainers.image.source="https://github.com/bn-digital/docker" \
Expand Down Expand Up @@ -38,6 +38,7 @@ RUN apt-get update --fix-missing \
&& rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/* /requirements.apt \
&& yarn global add \
@bn-digital/vault-env \
@sentry/cli \
concurrently \
eslint \
less \
Expand All @@ -54,9 +55,9 @@ WORKDIR /runner
ONBUILD WORKDIR /usr/local/src

FROM dcr.bndigital.dev/library/nodejs:1.0.1 AS cms
COPY ./packages/cms .
ENTRYPOINT ["yarn"]
CMD ["strapi", "start"]
ONBUILD COPY --chown=node ./packages/cms .

FROM dcr.bndigital.dev/library/nodejs:1.0.1 AS website
COPY ./packages/website/build .
ONBUILD COPY --chown=node ./packages/website/build .
83 changes: 42 additions & 41 deletions images/build/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@
"description": "Includes NodeJS libraries and packages used in BN Digital projects as part of CI Yarn caching layer",
"version": "1.0.0",
"dependencies": {
"@ant-design/charts": "^1.2.14",
"@ant-design/charts": "^1.3.2",
"@ant-design/icons": "^4.7.0",
"@apollo/client": "^3.5.4",
"@bn-digital/commitlint-config": "^1.1.0",
"@bn-digital/eslint-config": "^1.16.1",
"@bn-digital/graphql-config": "^1.0.1",
"@bn-digital/prettier-config": "^1.12.1",
"@bn-digital/stylelint-config": "^1.13.3",
"@apollo/client": "^3.5.6",
"@bn-digital/commitlint-config": "^1.2.2",
"@bn-digital/eslint-config": "^1.17.5",
"@bn-digital/graphql-config": "^1.0.2",
"@bn-digital/prettier-config": "^1.13.1",
"@bn-digital/stylelint-config": "^1.13.4",
"@bn-digital/vault-env": "^1.4.0",
"@bn-digital/webpack": "^1.16.29",
"@bn-digital/vite": "^1.0.24",
"@bn-digital/webpack": "^1.17.13",
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@sentry/browser": "^6.15.0",
"@sentry/browser": "^6.16.1",
"@sentry/cli": "^1.71.0",
"@sentry/node": "^6.15.0",
"@sentry/react": "^6.15.0",
"@sentry/tracing": "^6.15.0",
"antd": "4.16.13",
"@sentry/node": "^6.16.1",
"@sentry/react": "^6.16.1",
"@sentry/tracing": "^6.16.1",
"antd": "^4.17.3",
"commander": "^8.3.0",
"core-js": "^3.19.1",
"graphql": "^16.0.1",
"gsap": "^3.8.0",
"core-js": "^3.20.0",
"graphql": "^16.1.0",
"gsap": "^3.9.0",
"history": "^5.1.0",
"knex": "^0.95.14",
"less": "^4.1.2",
Expand All @@ -34,23 +35,23 @@
"react-ga": "^3.3.0",
"react-gtm-module": "^2.0.11",
"react-helmet": "^6.1.0",
"react-helmet-async": "^1.1.2",
"react-intl": "^5.22.0",
"react-markdown": "^7.1.0",
"react-helmet-async": "^1.2.2",
"react-intl": "^5.23.0",
"react-markdown": "^7.1.1",
"react-responsive": "^9.0.0-beta.5",
"react-router": "^6.0.2",
"react-router-dom": "^6.0.2",
"react-router": "^6.1.1",
"react-router-dom": "^6.1.1",
"react-router-hash-link": "^2.4.3",
"react-slick": "^0.28.1",
"react-use": "^17.3.1",
"sass": "^1.43.4",
"sass": "^1.45.0",
"sharp": "^0.29.3",
"slugify": "^1.6.3",
"slugify": "^1.6.4",
"sqlite3": "^5.0.2",
"strapi": "^3.6.8",
"strapi-admin": "^3.6.8",
"strapi-connector-bookshelf": "^3.6.8",
"strapi-middleware-cache": "^2.1.5",
"strapi-middleware-cache": "^2.1.6",
"strapi-plugin-content-manager": "^3.6.8",
"strapi-plugin-content-type-builder": "^3.6.8",
"strapi-plugin-email": "^3.6.8",
Expand All @@ -69,24 +70,24 @@
"strapi-provider-email-sendmail": "^3.6.8",
"strapi-provider-upload-aws-s3": "^3.6.8",
"strapi-utils": "^3.6.8",
"tailwindcss": "^2.2.19",
"webpack": "^5.64.2",
"workbox-background-sync": "^6.4.1",
"workbox-build": "^6.4.1",
"workbox-cacheable-response": "^6.4.1",
"workbox-cli": "^6.4.1",
"workbox-core": "^6.4.1",
"workbox-expiration": "^6.4.1",
"workbox-google-analytics": "^6.4.1",
"workbox-precaching": "^6.4.1",
"workbox-routing": "^6.4.1",
"workbox-streams": "^6.4.1",
"workbox-sw": "^6.4.1",
"workbox-window": "^6.4.1"
"tailwindcss": "^3.0.6",
"webpack": "^5.65.0",
"workbox-background-sync": "^6.4.2",
"workbox-build": "^6.4.2",
"workbox-cacheable-response": "^6.4.2",
"workbox-cli": "^6.4.2",
"workbox-core": "^6.4.2",
"workbox-expiration": "^6.4.2",
"workbox-google-analytics": "^6.4.2",
"workbox-precaching": "^6.4.2",
"workbox-routing": "^6.4.2",
"workbox-streams": "^6.4.2",
"workbox-sw": "^6.4.2",
"workbox-window": "^6.4.2"
},
"devDependencies": {
"@types/node": "^16.11.9",
"@types/react": "^17.0.36",
"@types/node": "^16.11.14",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/react-router-hash-link": "^2.4.4",
"cross-env": "^7.0.3",
Expand All @@ -95,7 +96,7 @@
"nodemon": "^2.0.15",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typescript": "^4.5.2"
"typescript": "^4.5.4"
},
"engineStrict": false
}
49 changes: 3 additions & 46 deletions images/runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,52 +1,10 @@
# syntax docker/dockerfile:latest
ARG unit_version=1.25.0
ARG nodejs_version=16.13.0
ARG unit_version=1.26.0
ARG nodejs_version=16.13.1
ARG php_version=8.0
FROM node:${nodejs_version}-slim AS nodejs-base

FROM nodejs-base AS nodejs-build
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
&& hg clone https://hg.nginx.org/unit \
&& cd unit \
&& hg up 1.25.0 \
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
&& LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
&& CONFIGURE_ARGS="--prefix=/usr \
--state=/var/lib/unit \
--control=unix:/var/run/control.unit.sock \
--pid=/var/run/unit.pid \
--log=/var/log/unit.log \
--tmp=/var/tmp \
--user=unit \
--group=unit \
--openssl \
--libdir=/usr/lib/$DEB_HOST_MULTIARCH" \
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modules=/usr/lib/unit/debug-modules --debug \
&& make -j $NCPU unitd \
&& install -pm755 build/unitd /usr/sbin/unitd-debug \
&& make clean \
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modules=/usr/lib/unit/modules \
&& make -j $NCPU unitd \
&& install -pm755 build/unitd /usr/sbin/unitd \
&& make clean \
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/debug-modules --debug \
&& ./configure nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp \
&& make -j $NCPU node node-install libunit-install \
&& make clean \
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
&& ./configure nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp \
&& make -j $NCPU node node-install libunit-install \
&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq > /requirements.apt



FROM nginx/unit:${unit_version}-node15 AS nodejs-nginx
FROM nginx/unit:${unit_version}-node16 AS nodejs-nginx
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get dist-upgrade --yes \
Expand All @@ -62,7 +20,6 @@ ENV PORT=5000
ENV NODE_ENV=production
COPY docker-entrypoint.d/nodejs.json /docker-entrypoint.d/unit.json


FROM nodejs-base AS nodejs
LABEL org.opencontainers.image.authors="BN Enginseers" \
org.opencontainers.image.url="https://github.com/bn-digital/docker" \
Expand Down
10 changes: 5 additions & 5 deletions skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# nonk8s
apiVersion: pipelines/v2beta24
apiVersion: skaffold/v2beta26
kind: Config
build:
artifacts:
- image: yarn
context: images/build
docker:
target: default
- image: nodejs
context: images/runtime
docker:
Expand All @@ -13,22 +15,20 @@ build:
context: images/runtime
docker:
target: php-nginx
- image: openvpn
context: images/openvpn
tagPolicy:
sha256: { }
local:
push: true
useBuildkit: true
concurrency: 0
profiles:
- name: production
- name: release
build:
tagPolicy:
gitCommit:
variant: Tags
ignoreChanges: true
local:
push: true
useDockerCLI: true
useBuildkit: true
concurrency: 0
Loading

0 comments on commit cddcace

Please sign in to comment.