summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2024-10-14 12:57:13 +0530
committerSunil Shetye2024-10-14 15:29:35 +0530
commit9b19fdfcdd5eb7ea1cbdb828405a6a1176861f47 (patch)
tree72afdbde752300656edca2745f78f4d7fb4b2cba
parentf931904e8c28b2dc9ad14a863e6fbeeedd5dfb39 (diff)
downloadCommon-Interface-Project-9b19fdfcdd5eb7ea1cbdb828405a6a1176861f47.tar.gz
Common-Interface-Project-9b19fdfcdd5eb7ea1cbdb828405a6a1176861f47.tar.bz2
Common-Interface-Project-9b19fdfcdd5eb7ea1cbdb828405a6a1176861f47.zip
move echo out of install.sh
-rw-r--r--blocks/Dockerfile3
-rw-r--r--blocks/Dockerfile.patch10
-rwxr-xr-xblocks/install.sh1
3 files changed, 8 insertions, 6 deletions
diff --git a/blocks/Dockerfile b/blocks/Dockerfile
index a962da50..c7ec7dec 100644
--- a/blocks/Dockerfile
+++ b/blocks/Dockerfile
@@ -121,6 +121,9 @@ COPY . .
# Configure venv and sqlite3
RUN ./install.sh
+# For localhost only
+RUN echo 'WDS_SOCKET_PORT=80' > eda-frontend/.env.local
+
# Cleanup
RUN apt-get autoremove -qq --purge gawk python3-pip python3-venv wget xz-utils
RUN apt-get clean -qq
diff --git a/blocks/Dockerfile.patch b/blocks/Dockerfile.patch
index 78de7a95..b804470e 100644
--- a/blocks/Dockerfile.patch
+++ b/blocks/Dockerfile.patch
@@ -1,5 +1,5 @@
---- Dockerfile 2024-10-10 16:47:04.746578352 +0530
-+++ Dockerfile.1 2024-10-10 17:09:51.818144917 +0530
+--- Dockerfile 2024-10-14 15:28:16.972057714 +0530
++++ Dockerfile.1 2024-10-14 15:28:43.415609556 +0530
@@ -119,7 +119,7 @@
COPY . .
@@ -7,9 +7,9 @@
-RUN ./install.sh
+RUN ./install.sh prod
- # Cleanup
- RUN apt-get autoremove -qq --purge gawk python3-pip python3-venv wget xz-utils
-@@ -170,4 +170,4 @@
+ # For localhost only
+ RUN echo 'WDS_SOCKET_PORT=80' > eda-frontend/.env.local
+@@ -173,4 +173,4 @@
WORKDIR ${XCOS_DIR}
diff --git a/blocks/install.sh b/blocks/install.sh
index 4ba6738a..ec9af85d 100755
--- a/blocks/install.sh
+++ b/blocks/install.sh
@@ -58,4 +58,3 @@ if test "$1" = 'prod'; then
npm run build
rm -rf node_modules public src
fi
-echo 'WDS_SOCKET_PORT=8000' > .env.local