Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,18 @@ docker build --platform linux/amd64 -t local_image:v1 -f images/Dockerfile .

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

```
```dotenv
DEFAULT_WORKSPACE_IMAGE=local_image:v1
```

Or you can set the following in your `workspace.yaml` configuration file in your pipeline directory:

```yaml
env:
WORKSPACE_DOCKER_IMAGE: local_image:v1
```


### Running the tests

You can run the tests using pytest:
Expand Down
6 changes: 3 additions & 3 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ FROM blsq/openhexa-base-environment:latest

USER root

WORKDIR /app
COPY . /app
WORKDIR /home/hexa
COPY . /home/hexa

RUN pip install build
RUN python -m build .

RUN pip install --no-cache-dir /app/dist/*.tar.gz && rm -rf /app/dist/*.tar.gz
RUN pip install --no-cache-dir /home/hexa/dist/*.tar.gz && rm -rf /home/hexa/dist/*.tar.gz