Skip to content

Commit

Permalink
Warn about docker image build, switch to the existing public HARDENS …
Browse files Browse the repository at this point in the history
…image
  • Loading branch information
podhrmic committed Apr 5, 2024
1 parent b86f58f commit b8fe550
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,11 @@ tools to this container as necessary during project execution.

#### HARDENS Container

To build and run the core HARDENS Docker image, use the
`build_docker.sh` script and then `docker run` commands.
To build and run the core HARDENS Docker image, use the prebuild `galoisinc/hardens:latest` image. Note that `build_docker.sh` currently does not work, as `cryptol-codegen` no longer builds. Best if you use the following command:

```
$ ./build_docker.sh
$ docker run --network host --privileged -v $PWD:/HARDENS -it \
hardens:latest
galoisinc/hardens:latest
```

In order to run a long-lived Docker container for reuse, use a `docker
Expand All @@ -300,7 +298,7 @@ directory in order to bind your sandbox properly into the container.

```
$ docker run -d -it --name HARDENS --network host --privileged \
-v $PWD:/HARDENS hardens:latest
-v $PWD:/HARDENS galoisinc/hardens:latest
```

If you have stopped a container running and it lists as "exited" when
Expand All @@ -317,15 +315,6 @@ use by running a command like:
$ docker exec -it HARDENS bash -l
```

If you are *within Galois network* and *you have access rights*, you
can download the docker image from artifactory:

```bash
$ docker pull artifactory.galois.com:5015/hardens:latest
$ docker run --network host --privileged -v $PWD:/HARDENS -it \
artifactory.galois.com:5015/hardens:latest
```

The helper script `run_docker.sh` executed the above detached run
command, using Galois's public docker HARDENS image. The helper
script `docker_shell.sh` runs a shell in the spawned container.
Expand Down

0 comments on commit b8fe550

Please sign in to comment.