File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 50
50
# Gramex Enterprise is not released every time Gramex is released. Versions may be missing.
51
51
# So instead of ==$VERSION, we use <=$VERSION.
52
52
pip install "gramex<=$VERSION" "gramexenterprise<=$VERSION" && \
53
+ pip cache purge && \
53
54
# Accept the Gramex Enterprise license
54
55
gramex license accept && \
55
56
# Create an /app directory where app can be mounted
Original file line number Diff line number Diff line change 18
18
# Activate conda env to run Gramex
19
19
source ~/.profile && \
20
20
# Set up all Gramex apps
21
- gramex setup --all
21
+ gramex setup --all && \
22
+ # Clean up npm cache
23
+ npm cache clean --force
Original file line number Diff line number Diff line change @@ -75,16 +75,13 @@ conda () {
75
75
}
76
76
77
77
# Usage: VERSION=1.xx.0 bash task pushdocker
78
- pushdocker () {
78
+ builddocker () {
79
79
VERSION=$VERSION bash pkg/docker-gramex-base/setup.sh
80
80
VERSION=$VERSION bash pkg/docker-gramex/setup.sh
81
- # Run security checks
82
- docker pull aquasec/trivy:latest
83
- docker run --rm aquasec/trivy:latest \
84
- -v /var/run/docker.sock:/var/run/docker.sock \
85
- -v /mnt/c/temp/trivycache:/root/.cache/
86
- --security-checks vuln \
87
- image gramener/gramex:$VERSION > reports/trivy.txt
81
+ VERSION=$VERSION bash pkg/docker-gramex-test/setup.sh
82
+ }
83
+
84
+ pushdocker () {
88
85
docker login # log in as sanand0 / pratapvardhan
89
86
docker push gramener/gramex-base:$VERSION
90
87
docker push gramener/gramex-base:latest
You can’t perform that action at this time.
0 commit comments