Skip to content

Commit

Permalink
Update docker packages, test script and yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
stankolubomir committed Oct 30, 2023
1 parent 77a87c8 commit e970ec0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 24 deletions.
27 changes: 11 additions & 16 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#######################################################################################################################
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
ARGS="$*"
DOCKER_CONTAINER="admin-dam"
BROWSER="chrome"
ENV="local"
FILTER=""
Expand Down Expand Up @@ -43,18 +42,13 @@ function help() {
#######################################################################################################################
while [ "$#" -gt 0 ]; do
case $1 in
admin-dam)
DOCKER_CONTAINER=$1
shift 1
continue
;;
-b)
BROWSER="$2"
BROWSER=$2
shift 2
continue
;;
--browser*)
BROWSER="${1#*=}"
BROWSER=${1#*=}
shift 1
continue
;;
Expand All @@ -64,7 +58,7 @@ while [ "$#" -gt 0 ]; do
continue
;;
--env*)
ENV="${1#*=}"
ENV=${1#*=}
shift 1
continue
;;
Expand All @@ -74,7 +68,7 @@ while [ "$#" -gt 0 ]; do
continue
;;
--filter*)
FILTER="${1#*=}"
FILTER=${1#*=}
shift 1
continue
;;
Expand All @@ -84,7 +78,7 @@ while [ "$#" -gt 0 ]; do
continue
;;
--tag*)
TAG="${1#*=}"
TAG=${1#*=}
shift 1
continue
;;
Expand Down Expand Up @@ -120,10 +114,11 @@ if [ -f /.dockerenv ]; then
# shellcheck disable=SC2086
CYPRESS_grepTags=${FILTER} \
dbus-launch ${RUNNER} cypress run \
--config-file ${CONFIG_FILE} \
--env cfg=${ENV} \
--browser ${BROWSER} \
${DASHBOARD_OPTIONS}
--config-file ${CONFIG_FILE} \
--env cfg=${ENV} \
--browser ${BROWSER} \
${DASHBOARD_OPTIONS}
exit
fi
bin/docker-compose exec --user node "${DOCKER_COMPOSE_SERVICE_NAME}" bash -c \'bin/test ${ARGS}\'

bin/docker-compose exec --user node "${DOCKER_COMPOSE_SERVICE_NAME}" bash -c \'bin/test "${ARGS}"\'
10 changes: 5 additions & 5 deletions docker/app/local/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ ARG DOCKER_GROUP_ID
# Versions
# Nginx version
ENV NGINX_VERSION=1.24.0 \
NGINX_NJS_VERSION=0.7.12 \
NGINX_NJS_VERSION=0.8.1 \
NGINX_PKG_RELEASE=1~bookworm \
# Supervisor version
SUPERVISOR_VERSION=4.2.5 \
SUPERVISOR_PKG_RELEASE=1 \
# NPM version
NPM_VERSION=9.8.1 \
NPM_VERSION=10.2.1 \
# Yarn version
DOCKER_YARN_VERSION=3.6.0 \
DOCKER_YARN_VERSION=3.6.4 \
DOCKER_YARN_PLUGIN_OUTDATED=3.2.4 \
# Browsers version
CHROME_VERSION=114.0.5735.133 \
FIREFOX_VERSION=114.0.1
CHROME_VERSION=118.0.5993.117 \
FIREFOX_VERSION=119.0
# Common environment variables
ENV CONTAINER_STOP_LOG_FILE="/var/www/html/var/log/container_stop.log" \
COREPACK_HOME="/usr/lib/node/corepack" \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adam-admin",
"packageManager": "yarn@3.5.0",
"packageManager": "yarn@3.6.4",
"license": "Apache-2.0",
"version": "0.0.1",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7075,11 +7075,11 @@ __metadata:

"typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d
checksum: 1f8f3b6aaea19f0f67cba79057674ba580438a7db55057eb89cc06950483c5d632115c14077f6663ea76fd09fce3c190e6414bb98582ec80aa5a4eaf345d5b68
languageName: node
linkType: hard

Expand Down

0 comments on commit e970ec0

Please sign in to comment.