test: Add license key with docker run (#12685)

* Added license key to docker run
This commit is contained in:
yatinappsmith 2022-04-08 05:23:18 +05:30 committed by GitHub
parent dcddf4cb86
commit 20547edb47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -560,14 +560,8 @@ jobs:
mkdir -p fatcontainerlocal/stacks/configuration/ mkdir -p fatcontainerlocal/stacks/configuration/
cd fatcontainerlocal cd fatcontainerlocal
docker run -d --name appsmith -p 80:80 -p 9001:9001 \ docker run -d --name appsmith -p 80:80 -p 9001:9001 \
-v "$PWD/stacks:/appsmith-stacks" fatcontainer -v "$PWD/stacks:/appsmith-stacks" -e APPSMITH_LICENSE_KEY=$APPSMITH_LICENSE_KEY \
# sudo chmod a+rw stacks/configuration/docker.env fatcontainer
# sudo echo "APPSMITH_LICENSE_KEY=$APPSMITH_LICENSE_KEY" >> stacks/configuration/docker.env
# - name: Restart Appsmith
# if: steps.run_result.outputs.run_result != 'success'
# run: |
# docker restart appsmith
- name: Use Node.js 14.15.4 - name: Use Node.js 14.15.4
if: steps.run_result.outputs.run_result != 'success' if: steps.run_result.outputs.run_result != 'success'

View File

@ -544,14 +544,8 @@ jobs:
mkdir -p fatcontainerlocal/stacks/configuration/ mkdir -p fatcontainerlocal/stacks/configuration/
cd fatcontainerlocal cd fatcontainerlocal
docker run -d --name appsmith -p 80:80 -p 9001:9001 \ docker run -d --name appsmith -p 80:80 -p 9001:9001 \
-v "$PWD/stacks:/appsmith-stacks" fatcontainer -v "$PWD/stacks:/appsmith-stacks" -e APPSMITH_LICENSE_KEY=$APPSMITH_LICENSE_KEY \
# sudo chmod a+rw stacks/configuration/docker.env fatcontainer
# sudo echo "APPSMITH_LICENSE_KEY=$APPSMITH_LICENSE_KEY" >> stacks/configuration/docker.env
# - name: Restart Appsmith
# if: steps.run_result.outputs.run_result != 'success'
# run: |
# docker restart appsmith
- name: Use Node.js 14.15.4 - name: Use Node.js 14.15.4
if: steps.run_result.outputs.run_result != 'success' if: steps.run_result.outputs.run_result != 'success'