This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from opfab/develop
1.1.0.RELEASE
- Loading branch information
Showing
45 changed files
with
614 additions
and
97 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 @@ | ||
/letsco-common/letsco-common.iml | ||
/letsco-core.iml |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2020, RTE (https://www.rte-france.com) | ||
# Copyright (c) 2020 RTE international (https://www.rte-international.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the Let’s Coordinate project. | ||
|
||
FROM nginx | ||
|
||
RUN rm /etc/nginx/nginx.conf | ||
RUN mkdir /var/www | ||
RUN mkdir /var/www/letsco | ||
|
||
COPY ./nginx.conf /etc/nginx | ||
COPY ./letsco-front /var/www/letsco | ||
|
||
RUN rm /var/www/letsco/letsco-env/env.js | ||
|
||
EXPOSE 80 | ||
EXPOSE 8080 |
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,20 @@ | ||
# Copyright (c) 2020, RTE (https://www.rte-france.com) | ||
# Copyright (c) 2020 RTE international (https://www.rte-international.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the Let’s Coordinate project. | ||
|
||
FROM nginx | ||
|
||
RUN rm /etc/nginx/nginx.conf | ||
RUN mkdir /var/www | ||
RUN mkdir /var/www/letsco | ||
|
||
COPY ./nginx.conf /etc/nginx | ||
COPY ./letsco-front /var/www/letsco | ||
|
||
EXPOSE 80 | ||
EXPOSE 8080 |
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,50 @@ | ||
# Copyright (c) 2020, RTE (https://www.rte-france.com) | ||
# Copyright (c) 2020 RTE international (https://www.rte-international.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the Let’s Coordinate project. | ||
|
||
user nginx; | ||
worker_processes 1; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
#gzip on; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
|
||
server { | ||
listen 8080; | ||
server_name localhost; | ||
location / { | ||
root /var/www/letsco; | ||
index index.html index.htm; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
} | ||
} |
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,30 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2020, RTE (https://www.rte-france.com) | ||
# Copyright (c) 2020 RTE international (https://www.rte-international.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the Let’s Coordinate project. | ||
|
||
if [ ! -z $1 ]; then | ||
tag=$1 | ||
echo "Tag: $tag" | ||
else | ||
echo "You must specify a tag" | ||
exit 1 | ||
fi | ||
|
||
cd ../../letsco-front | ||
ng build --prod --base-href /letsco --deploy-url /letsco/ | ||
cd - | ||
rm -rf ./letsco-front | ||
cp -r ../../letsco-front/dist/letsco-front . | ||
JS_FILES=$(ls letsco-front/ | grep -E '(\.js|\.css|assets)' | xargs echo) | ||
cd letsco-front/ && mv $JS_FILES letsco && cd - | ||
|
||
docker build --tag=nginx-letsco-front -f ./Dockerfile-with-envjs . && \ | ||
docker stop nginx-letsco ; docker rm nginx-letsco ; \ | ||
docker run -d -p 4200:8080 --name nginx-letsco nginx-letsco-front |
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,37 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2020, RTE (https://www.rte-france.com) | ||
# Copyright (c) 2020 RTE international (https://www.rte-international.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the Let’s Coordinate project. | ||
|
||
if [ ! -z $1 ]; then | ||
tag=$1 | ||
echo "Tag: $tag" | ||
else | ||
echo "You must specify a tag" | ||
exit 1 | ||
fi | ||
|
||
cd ../../letsco-front | ||
ng build --prod --base-href /letsco --deploy-url /letsco/ | ||
cd - | ||
rm -rf ./letsco-front | ||
cp -r ../../letsco-front/dist/letsco-front . | ||
JS_FILES=$(ls letsco-front/ | grep -E '(\.js|\.css|assets)' | xargs echo) | ||
cd letsco-front/ && mv $JS_FILES letsco && cd - | ||
docker build --tag=letscoordinate/frontend:latest . | ||
docker build --tag=letscoordinate/frontend:${tag} . | ||
docker push letscoordinate/frontend:latest | ||
docker push letscoordinate/frontend:${tag} | ||
|
||
if [ ! -z $runLocally ]; then | ||
docker build --tag=nginx-letsco-front -f ./Dockerfile-with-env.js . && \ | ||
docker stop nginx-letsco ; sudo docker rm nginx-letsco ; \ | ||
docker run -d -p 4200:8080 --name nginx-letsco nginx-letsco-front | ||
fi | ||
|
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.