Skip to content

Commit

Permalink
Merge pull request #604 from vsbogd/fix-docker
Browse files Browse the repository at this point in the history
Fix Dockerfile to allow building docker from a local copy of the repo
  • Loading branch information
vsbogd authored Feb 27, 2024
2 parents 2dab28b + 4088704 commit 5a302ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN python3 -m pip install conan==1.62 pip==23.1.2
ENV PATH="${PATH}:/home/user/.local/bin"
RUN conan profile new --detect default

RUN git clone https://github.com/trueagi-io/hyperon-experimental.git
ADD --chown=user:users . ${HOME}/hyperon-experimental
WORKDIR ${HOME}/hyperon-experimental
RUN mkdir build

Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,27 @@ If you find troubles with the installation, see the [Troubleshooting](#troublesh

## Docker

A docker image can be used as a ready to run environment.
A docker image can be used as a ready to run stable and predictable development
environment. Please keep in mind that resulting image contains temporary build
files and takes a lot of a disk space. It is not recommended to distribute it
as an image for running MeTTa because of its size.

Build docker image running:
Build Docker image from a local copy of the repo running:
```
docker build -t trueagi/hyperon https://raw.githubusercontent.com/trueagi-io/hyperon-experimental/main/Dockerfile
docker build -t trueagi/hyperon .
```

Or build it without cloning the repo running:
```
docker build -t trueagi/hyperon http://github.com/trueagi-io/hyperon-experimental.git#main
```

Run the image:
```
docker run --rm -ti trueagi/hyperon
```

Resulting container contains the latest code from the repo compiled and ready
to run. If the docker image doesn't work, please raise an
If the docker image doesn't work, please raise an
[issue](https://github.com/trueagi-io/hyperon-experimental/issues).

## Manual installation
Expand Down

0 comments on commit 5a302ce

Please sign in to comment.