-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
218 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
MYSQL_ROOT_PASSWORD=db>D6~M$4§Y:sChh | ||
MYSQL_USER=aas-server | ||
MYSQL_PASSWORD=60PYRe6Vd8C99u4n | ||
|
||
MONGO_INITDB_ROOT_USERNAME=aas-server | ||
MONGO_INITDB_ROOT_PASSWORD=bObXJWW6e8Nh78YF | ||
|
||
NEXTCLOUD_MYSQL_ROOT_PASSWORD=H68rJ7h4wJ75PgUY | ||
NEXTCLOUD_MYSQL_PASSWORD=VgpnIrk8jJRj435b | ||
NEXTCLOUD_ADMIN_USER=aas-server | ||
NEXTCLOUD_ADMIN_PASSWORD=5w0vmrkzrwDIDyZs | ||
NEXTCLOUD_TRUSTED_DOMAINS=localhost | ||
|
||
AAS_INDEX=mysql://aas-server:60PYRe6Vd8C99u4n@aasportal-index:3306 | ||
USER_STORAGE=mongodb://aas-server:bObXJWW6e8Nh78YF@aasportal-users:27017/aasportal-users | ||
TEMPLATE_STORAGE=http://aas-server:5w0vmrkzrwDIDyZs@aasportal-cloud:8080/templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
# Dockerfile to build server and client parts | ||
FROM node:20.11.1-alpine as build | ||
# Dockerfile to build server app | ||
FROM node:20.11.1-alpine AS build | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
# RUN apk add g++ make py3-pip | ||
RUN npm install | ||
RUN node --no-warnings --loader ts-node/esm create-app-info.ts | ||
RUN npm run aas-server:build | ||
|
||
FROM node:20.11.1-alpine AS aas-server | ||
RUN apk upgrade --update-cache --available && apk add openssl && rm -rf /var/cache/apk/* | ||
WORKDIR /usr/src/app | ||
COPY projects/aas-server/package.json package.json | ||
COPY projects/aas-server/src/assets assets/ | ||
COPY --from=build /usr/src/app/projects/aas-server/package.json package.json | ||
RUN npm install --omit=dev | ||
COPY --from=build /usr/src/app/projects/aas-server/dist/ /usr/src/app/ | ||
COPY --from=build /usr/src/app/projects/aas-core/dist/ /usr/src/app/node_modules/aas-core/dist/ | ||
COPY --from=build /usr/src/app/projects/aas-core/package.json /usr/src/app/node_modules/aas-core/package.json | ||
COPY --from=build /usr/src/app/projects/aas-server/src/assets assets/ | ||
COPY --from=build /usr/src/app/projects/aas-server/dist/ . | ||
COPY --from=build /usr/src/app/projects/aas-core/dist/ node_modules/aas-core/dist/ | ||
COPY --from=build /usr/src/app/projects/aas-core/package.json node_modules/aas-core/package.json | ||
ENV NODE_LOG=./log/debug.log | ||
ENV NODE_SERVER_PORT=1337 | ||
ENV USER_STORAGE=mongodb://172.16.160.177:27017/aasportal-users | ||
ENV AAS_INDEX=mysql://172.16.160.177:3306 | ||
ENV TEMPLATE_STORAGE: http://172.16.160.177:8080/templates | ||
ENV ENDPOINTS=["\"file:///endpoints/samples?name=Samples\""] | ||
ENV NODE_ENV=production | ||
|
||
EXPOSE 1337 | ||
CMD ["node", "aas-server.js" ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.