Skip to content

Commit e9f0149

Browse files
committed
fix
1 parent 51cd688 commit e9f0149

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,18 @@ docker build --platform linux/amd64 -t local_image:v1 -f images/Dockerfile .
136136

137137
Then reference the image name and tag in the `.env` file of your OpenHexa app :
138138

139-
```
139+
```dotenv
140140
DEFAULT_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
145153
You can run the tests using pytest:

images/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM blsq/openhexa-base-environment:latest
22

33
USER root
44

5-
WORKDIR /app
6-
COPY . /app
5+
WORKDIR /home/hexa
6+
COPY . /home/hexa
77

88
RUN pip install build
99
RUN 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

0 commit comments

Comments
 (0)