Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Added beta profile for verdaccio@6-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanAyalon committed May 10, 2024
1 parent de798fe commit 5ea774a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 22 deletions.
22 changes: 22 additions & 0 deletions compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
verdaccio-dev:
extends:
file: compose.base.yml
service: verdaccio
develop:
watch:
- action: rebuild
path: ./files
target: /verdaccio
# ports:
# - ${HOST_PORT:-4873}:4873
volumes:
- ${CONF_DEV:-./mounts/live/conf}:/verdaccio/conf:ro
- ${STORAGE_DEV:-${STORAGE:-./mounts/dev/storage}}:/verdaccio/storage
- ${LOGS_DEV:-./mounts/dev/logs}:/verdaccio/logs
# - ${CERTS_DEV:-${CERTS:-./mounts/dev/certs}}:/verdaccio/certs:ro
environment:
- DOMAIN=${DOMAIN_DEV:-${DOMAIN:?}}
- HOST_PORT=${HOST_PORT_DEV:-${HOST_PORT:-4873}}
- PROXY_PORT=${PROXY_PORT:-${PORT_DEV:-${HOST_PORT:-4873}}}
- VIRTUAL_HOST=${DOMAIN_DEV:-${DOMAIN:?}}
37 changes: 15 additions & 22 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,27 @@ services:
- DOMAIN=${DOMAIN:?}
- HOST_PORT=${HOST_PORT:-4873}
- PROXY_PORT=${PROXY_PORT:-${HOST_PORT:-4873}}
- VIRTUAL_HOST=${DOMAIN:?}
- VIRTUAL_HOST=${DOMAIN:?}

verdaccio-dev:
extends:
file: compose.base.yml
service: verdaccio
profiles:
- dev
file: compose.dev.yml
service: verdaccio-dev
image: jackdeaniels/private:verdaccio-dev
container_name: verdaccio-dev
develop:
watch:
- action: rebuild
path: ./files
target: /verdaccio
# ports:
# - ${HOST_PORT:-4873}:4873
volumes:
- ${CONF_DEV:-./mounts/live/conf}:/verdaccio/conf:ro
- ${STORAGE_DEV:-${STORAGE:-./mounts/dev/storage}}:/verdaccio/storage
- ${LOGS_DEV:-./mounts/dev/logs}:/verdaccio/logs
# - ${CERTS_DEV:-${CERTS:-./mounts/dev/certs}}:/verdaccio/certs:ro
environment:
- DOMAIN=${DOMAIN_DEV:-${DOMAIN:?}}
- HOST_PORT=${HOST_PORT_DEV:-${HOST_PORT:-4873}}
- PROXY_PORT=${PROXY_PORT:-${PORT_DEV:-${HOST_PORT:-4873}}}
- VIRTUAL_HOST=${DOMAIN_DEV:-${DOMAIN:?}}
profiles:
- dev

verdaccio-beta:
extends:
file: compose.dev.yml
service: verdaccio-dev
image: jackdeaniels/private:verdaccio-beta
container_name: verdaccio-beta
profiles:
- beta
build:
dockerfile: dockerfile.beta


# Old configuration - Uses nginx-v1
Expand Down
19 changes: 19 additions & 0 deletions dockerfile.beta
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM verdaccio/verdaccio:6.0.0-beta.2
EXPOSE 4873

# Get curl for healthcheck
USER root
RUN apk update && apk add curl

# Copy scripts into container
COPY --chown=root:root files/scripts/* /verdaccio/scripts/
# Script execution permissions
RUN chmod u+x /verdaccio/scripts/*

# Switch user
# USER $VERDACCIO_USER_UID
# USER verdaccio
# ^ Both these options crash the container on startup, exit code 2, no logs, no errors

HEALTHCHECK --interval=30s --timeout=3s \
CMD /verdaccio/scripts/healthcheck.sh

0 comments on commit 5ea774a

Please sign in to comment.