-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit b1eefce
Showing
40 changed files
with
9,652 additions
and
0 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,2 @@ | ||
node_modules | ||
dist |
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,35 @@ | ||
FROM node:13 as build | ||
|
||
# set working directory | ||
RUN mkdir /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN curl -L -o elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz && gunzip elm.gz && chmod +x elm && mv elm /usr/local/bin/ && elm --help | ||
|
||
# add `/usr/src/app/node_modules/.bin` to $PATH | ||
ENV PATH /usr/src/app/node_modules/.bin:$PATH | ||
|
||
# install and cache app dependencies | ||
COPY package.json /usr/src/app/package.json | ||
RUN rm -rf /root/.node-gyp | ||
|
||
# add app | ||
COPY . /usr/src/app | ||
RUN npm install | ||
RUN npm rebuild node-sass | ||
RUN npm run package | ||
|
||
#production stage | ||
FROM httpd:2.4-alpine | ||
|
||
ENV BACKEND_URL=https://focus-backend.saturn.industries | ||
|
||
COPY --from=build /usr/src/app/dist /usr/local/apache2/htdocs | ||
|
||
COPY devops /usr/local/apache2/devops | ||
RUN ls -l /usr/local/apache2 | ||
RUN echo "Include devops/settie-fe*.conf" >> /usr/local/apache2/conf/httpd.conf | ||
|
||
ENTRYPOINT ["/usr/local/apache2/devops/configure.sh"] | ||
CMD ["httpd-foreground"] | ||
|
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,41 @@ | ||
# build stage | ||
# base image | ||
FROM node:9 AS build | ||
|
||
|
||
# set working directory | ||
RUN mkdir /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# add `/usr/src/app/node_modules/.bin` to $PATH | ||
ENV PATH /usr/src/app/node_modules/.bin:$PATH | ||
|
||
# install and cache app dependencies | ||
COPY package.json /usr/src/app/package.json | ||
RUN rm -rf /root/.node-gyp | ||
|
||
# NOTE: we are running with --unsafe-perm do get around an EACCESS problem | ||
# shoud be weeded out correctly | ||
|
||
|
||
# add app | ||
COPY . /usr/src/app | ||
RUN npm install --unsafe-perm | ||
RUN npm run build | ||
|
||
#production stage | ||
FROM httpd:2.4-alpine | ||
|
||
ENV BACKEND_URL=https://demo.settie-backend.cd.dsnexus.org | ||
ENV FRONTEND_UPLOAD_PORTAL_URL=https://demo.settie-upload-portal.cd.dsnexus.org | ||
|
||
|
||
COPY --from=build /usr/src/app/dist /usr/local/apache2/htdocs | ||
|
||
COPY devops /usr/local/apache2/devops | ||
RUN ls -l /usr/local/apache2 | ||
RUN echo "Include devops/settie-fe*.conf" >> /usr/local/apache2/conf/httpd.conf | ||
|
||
ENTRYPOINT ["/usr/local/apache2/devops/configure.sh"] | ||
CMD ["httpd-foreground"] | ||
|
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,9 @@ | ||
# Moved | ||
|
||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
Should start a hot reloading dev server | ||
|
||
|
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,7 @@ | ||
#!/bin/bash | ||
|
||
convert saturn.png -resize 180x180 -quality 100 icons/apple-touch-icon.png | ||
convert saturn.png -resize 32x32 -quality 100 icons/favicon-32.png | ||
convert saturn.png -resize 16x16 -quality 100 icons/favicon-16.png | ||
cp saturn-2.svg icons/safari-pinned-tab.svg | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.