Skip to content

Commit

Permalink
Update mediaflux version in CI (#643)
Browse files Browse the repository at this point in the history
* Update mediaflux version in CI

* Use the name mediaflux_dev for local development

* Update docs/local_development.md

Co-authored-by: carolyncole <1599081+carolyncole@users.noreply.github.com>

---------

Co-authored-by: carolyncole <1599081+carolyncole@users.noreply.github.com>
  • Loading branch information
bess and carolyncole authored Apr 15, 2024
1 parent e74d767 commit d85c4eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ commands:
run_mediaflux:
steps:
- run: echo "$DOCKERHUB_PASSWORD" | docker login --username $DOCKERHUB_USERNAME --password-stdin
- run: docker run -d --privileged --name mediaflux --publish 0.0.0.0:8888:8888 --mac-address 02:42:ac:11:00:02 eosadler/tigerdata
- run: docker run -d --privileged --name mediaflux --publish 0.0.0.0:8888:8888 --mac-address 02:42:ac:11:00:02 eosadler/mediaflux_dev:latest
run_postgres:
steps:
- run: docker create --name postgres --publish 0.0.0.0:5432:5432 --env POSTGRES_HOST_AUTH_METHOD=trust --env POSTGRES_DB=test_db --env POSTGRES_USER=tiger_data_user postgres:13.5-alpine
Expand Down
8 changes: 4 additions & 4 deletions docs/local_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Stop the current Docker container and remove both the container and the image us
```
docker stop mediaflux
docker rm mediaflux
docker rmi princeton_dev:23.08.25
docker rmi princeton_dev:latest (or the version you had previously like mediaflux_dev:latest )
```

## Load the new Docker image
Expand Down Expand Up @@ -44,16 +44,16 @@ docker images
1. Set the `repository` and `tag` values of your local image (notice that the `IMAGE ID` might be different in your local installation)

```
docker image tag 85b0eb016889 princeton_dev:latest
docker image tag 85b0eb016889 mediaflux_dev:latest
```

1. Now that we have the loaded the image we can _create a container_ with it (notice we name it "mediaflux")

```
docker create --name mediaflux --publish 0.0.0.0:8888:8888 princeton_dev:latest
docker create --name mediaflux --publish 0.0.0.0:8888:8888 mediaflux_dev:latest
```

You may need to add ` --mac-address 02:42:ac:11:00:02` before princeton_dev if mediaflux does not start
You may need to add ` --mac-address 02:42:ac:11:00:02` before mediaflux_dev if mediaflux does not start

1. From now on when you need _start this container_ you can use:

Expand Down

0 comments on commit d85c4eb

Please sign in to comment.