Skip to content

Commit

Permalink
Merge pull request #7 from uib-ub/fix-warnings
Browse files Browse the repository at this point in the history
Address warnings in dockerfiles and composer files
  • Loading branch information
kosarko authored Nov 7, 2024
2 parents 274f2eb + 55b7f05 commit 7899a88
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV NODE_OPTIONS="--max_old_space_size=4096"
# Listen / accept connections from all IP addresses.
# NOTE: At this time it is only possible to run Docker container in Production mode
# if you have a public URL. See https://github.com/DSpace/dspace-angular/issues/1485
ENV NODE_ENV development
ENV NODE_ENV=development
RUN apk add tzdata
RUN yarn build:prod
RUN npm install pm2 -g
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Test build:
# docker build -f Dockerfile.dist -t dspace/dspace-angular:dspace-7_x-dist .

FROM node:18-alpine as build
FROM node:18-alpine AS build

# Ensure Python and other build tools are available
# These are needed to install some node modules, especially on linux/arm64
Expand All @@ -26,6 +26,6 @@ COPY --chown=node:node docker/dspace-ui.json /app/dspace-ui.json

WORKDIR /app
USER node
ENV NODE_ENV production
ENV NODE_ENV=production
EXPOSE 4000
CMD pm2-runtime start dspace-ui.json --json
CMD ["pm2-runtime", "start", "dspace-ui.json", "--json"]
1 change: 0 additions & 1 deletion docker/cli.assetstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/cli.assetstore.yml
#
# Therefore, it should be kept in sync with that file
version: "3.7"

networks:
dspacenet:
Expand Down
1 change: 0 additions & 1 deletion docker/cli.ingest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/cli.ingest.yml
#
# Therefore, it should be kept in sync with that file
version: "3.7"

services:
dspace-cli:
Expand Down
2 changes: 0 additions & 2 deletions docker/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# http://www.dspace.org/license/
#

version: "3.7"

services:
dspace-cli:
image: "${DOCKER_OWNER:-ufal}/dspace-cli:${DSPACE_VER:-dspace-7_x}"
Expand Down
4 changes: 1 addition & 3 deletions docker/db.entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
#
# # Therefore, it should be kept in sync with that file
version: "3.7"

services:
dspacedb:
image: dspace/dspace-postgres-pgcrypto:loadsql
Expand Down Expand Up @@ -48,4 +46,4 @@ services:
<name-map collection-handle="123456789/28" submission-name="Journal"/> \
<name-map collection-handle="123456789/29" submission-name="JournalVolume"/> \
<name-map collection-handle="123456789/30" submission-name="JournalIssue"/>' /dspace/config/item-submission.xml
catalina.sh run
catalina.sh run
1 change: 0 additions & 1 deletion docker/docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# This is used by our GitHub CI at .github/workflows/build.yml
# It is based heavily on the Backend's Docker Compose:
# https://github.com/DSpace/DSpace/blob/main/docker-compose.yml
version: '3.7'
networks:
dspacenet:
services:
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# Docker Compose for running the DSpace Angular UI dist build
# for previewing with the DSpace Demo site backend
version: '3.7'
networks:
dspacenet:
services:
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose-rest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# This is based heavily on the docker-compose.yml that is available in the DSpace/DSpace
# (Backend) at:
# https://github.com/DSpace/DSpace/blob/main/docker-compose.yml
version: '3.7'
networks:
dspacenet:
# Due to the following specification, THIS FILE (docker-compose-rest.yml) must be last (if using several YMLs),
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# http://www.dspace.org/license/
#

version: '3.7'
networks:
dspacenet:
services:
Expand Down
2 changes: 0 additions & 2 deletions docker/matomo-w-db.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.5"

services:
db:
image: mariadb
Expand Down

0 comments on commit 7899a88

Please sign in to comment.