Skip to content

Commit 2c84923

Browse files
Clinton WerthClinton Werth
authored andcommitted
update docker files
1 parent bb72a71 commit 2c84923

File tree

5 files changed

+137
-137
lines changed

5 files changed

+137
-137
lines changed

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ COPY plugins/arcgis/service/ ./
3838
RUN npm run build
3939
RUN npm pack
4040

41-
# FROM node:20.11.1 AS build-imageserviceplugin
42-
# WORKDIR /imageserviceplugin
43-
# COPY plugins/image/service/package*.json ./
44-
# RUN npm install
45-
# COPY --from=build-service /service /imageserviceplugin/node_modules/@ngageoint/mage.service
46-
# RUN rm -rf /imageserviceplugin/node_modules/@ngageoint/mage.service/node_modules/mongoose
47-
# COPY plugins/image/service/ ./
48-
# RUN npm run build
49-
# RUN npm pack
41+
FROM node:20.11.1 AS build-imageserviceplugin
42+
WORKDIR /imageserviceplugin
43+
COPY plugins/image/service/package*.json ./
44+
RUN npm install
45+
COPY --from=build-service /service /imageserviceplugin/node_modules/@ngageoint/mage.service
46+
RUN rm -rf /imageserviceplugin/node_modules/@ngageoint/mage.service/node_modules/mongoose
47+
COPY plugins/image/service/ ./
48+
RUN npm run build
49+
RUN npm pack
5050

5151
FROM node:20.11.1 AS build-sftpserviceplugin
5252
WORKDIR /sftpserviceplugin
@@ -74,7 +74,7 @@ COPY --from=build-arcwebplugin /arcgiswebplugin/ngageoint*.tgz /arcgiswebplugin/
7474
COPY --from=build-arcserviceplugin /arcgisserviceplugin/ngageoint*.tgz /arcgisserviceplugin/
7575
COPY --from=build-sftpserviceplugin /sftpserviceplugin/ngageoint*.tgz /sftpserviceplugin/
7676
COPY --from=build-sftpwebplugin /sftpwebplugin/ngageoint*.tgz /sftpwebplugin/
77-
# COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
77+
COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
7878

7979
WORKDIR /instance
8080
RUN ls -la ../sftpwebplugin
@@ -84,6 +84,7 @@ RUN npm install ../sftpwebplugin/ngageoint-mage.sftp.web*.tgz
8484
RUN npm install ../sftpserviceplugin/ngageoint-mage.sftp.service*.tgz
8585
RUN npm install ../arcgiswebplugin/ngageoint*.tgz
8686
RUN npm install ../arcgisserviceplugin/ngageoint*.tgz
87+
RUN npm install ../imageserviceplugin/ngageoint*.tgz
8788

8889

8990
ENV NODE_PATH=./node_modules

docker/docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ services:
1515

1616
mage-server:
1717
depends_on: [ mage-db ]
18-
image: "mage-server:${MAGE_VERSION:-6.2.0}"
18+
image: "mage:prod"
1919
# image: "mage-server:debug"
2020
build:
2121
context: ./server
2222
# dockerfile: Dockerfile-debug
23-
args:
24-
MAGE_VERSION: "${MAGE_VERSION:-6.2.0}"
2523
platform: linux/amd64
2624
volumes:
2725
- ./server/resources:/var/lib/mage

docker/server/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RUN ls -l \
2121
&& npm i --omit dev @ngageoint/[email protected] \
2222
&& npm i --omit dev @ngageoint/[email protected] \
2323
&& npm i --omit dev @ngageoint/[email protected] \
24+
&& npm i --omit dev @ngageoint/[email protected] \
25+
&& npm i --omit dev @ngageoint/[email protected] \
2426
&& ln -s ./node_modules/.bin/mage.service
2527

2628
VOLUME /var/lib/mage
@@ -29,5 +31,7 @@ EXPOSE 4242
2931
ENTRYPOINT [ "./mage.service", \
3032
"--plugin", "@ngageoint/mage.arcgis.service", \
3133
"--plugin", "@ngageoint/mage.sftp.service", \
34+
"--plugin", "@ngageoint/mage.nga-msi", \
35+
"--plugin", "@ngageoint/mage.image.service", \
3236
"--web-plugin", "@ngageoint/mage.arcgis.web-app", \
33-
"--web-plugin", "@ngageoint/mage.arcgis.web-app"]
37+
"--web-plugin", "@ngageoint/mage.sftp.web"]

0 commit comments

Comments
 (0)