File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,10 +136,18 @@ docker build --platform linux/amd64 -t local_image:v1 -f images/Dockerfile .
136136
137137Then reference the image name and tag in the ` .env ` file of your OpenHexa app :
138138
139- ```
139+ ``` dotenv
140140DEFAULT_WORKSPACE_IMAGE=local_image:v1
141141```
142142
143+ Or you can set the following in your ` workspace.yaml ` configuration file in your pipeline directory:
144+
145+ ``` yaml
146+ env :
147+ WORKSPACE_DOCKER_IMAGE : local_image:v1
148+ ` ` `
149+
150+
143151### Running the tests
144152
145153You can run the tests using pytest:
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ FROM blsq/openhexa-base-environment:latest
22
33USER root
44
5- WORKDIR /app
6- COPY . /app
5+ WORKDIR /home/hexa
6+ COPY . /home/hexa
77
88RUN pip install build
99RUN python -m build .
1010
11- RUN pip install --no-cache-dir /app/ dist/*.tar.gz && rm -rf /app /dist/*.tar.gz
11+ RUN pip install --no-cache-dir /home/hexa/ dist/*.tar.gz && rm -rf /home/hexa /dist/*.tar.gz
You can’t perform that action at this time.
0 commit comments