Skip to content

Commit

Permalink
[ENG-2518] Removes registries container (#9596)
Browse files Browse the repository at this point in the history
* Removes registries container from docker-compose and corresponding readme

* Incorporates Corbin's changes detailing enabling the Collections container
  • Loading branch information
UdayVarkhedkar committed Mar 5, 2021
1 parent 20368f5 commit a0cc29c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 33 deletions.
10 changes: 7 additions & 3 deletions README-docker-compose.md
Expand Up @@ -122,8 +122,8 @@
- `$ docker-compose up -d mfr wb fakecas sharejs`
5. Run migrations and create preprint providers
- When starting with an empty database you will need to run migrations and populate preprint providers. See the [Running arbitrary commands](#running-arbitrary-commands) section below for instructions.
6. Start the OSF Web, API Server, Preprints, and Registries (Detached)
- `$ docker-compose up -d worker web api admin preprints registries ember_osf_web`
6. Start the OSF Web, API Server, and Preprints (Detached)
- `$ docker-compose up -d worker web api admin preprints ember_osf_web`
7. View the OSF at [http://localhost:5000](http://localhost:5000).


Expand All @@ -132,7 +132,7 @@
- Once the requirements have all been installed, you can start the OSF in the background with

```bash
$ docker-compose up -d assets admin_assets mfr wb fakecas sharejs worker web api admin preprints registries ember_osf_web
$ docker-compose up -d assets admin_assets mfr wb fakecas sharejs worker web api admin preprints ember_osf_web
```

- To view the logs for a given container:
Expand Down Expand Up @@ -343,3 +343,7 @@ wb:
- wb_tmp_vol:/tmp
stdin_open: true
```
### Running Collections
To run collections, you must uncomment COLLECTIONS_ENABLED=true in docker-compose.yml under ember_osf_web, then recreate your ember and web containers.
32 changes: 2 additions & 30 deletions docker-compose.yml
Expand Up @@ -17,8 +17,6 @@ volumes:
external: false
preprints_dist_vol:
external: false
registries_dist_vol:
external: false
reviews_dist_vol:
external: false
mfr_requirements_vol:
Expand Down Expand Up @@ -263,6 +261,8 @@ services:
- api
- web
environment:
# Uncomment below to enable collections on ember
# - COLLECTIONS_ENABLED=true
- BACKEND=local
expose:
- 4200
Expand Down Expand Up @@ -302,33 +302,6 @@ services:
- preprints_dist_vol:/code/dist
stdin_open: true

##############
# Registries #
##############

registries:
image: quay.io/centerforopenscience/osf-registries:develop-local
command:
- /bin/bash
- -c
- yarn --frozen-lockfile &&
yarn start --host 0.0.0.0 --port 4202 --live-reload-port 41955
restart: unless-stopped
depends_on:
- api
- web
environment:
- BACKEND=local
expose:
- 4202
- 41955
ports:
- 4202:4202
- 41955:41955
volumes:
- registries_dist_vol:/code/dist
stdin_open: true

###########
# Reviews #
###########
Expand Down Expand Up @@ -527,6 +500,5 @@ services:
- osf_node_modules_vol:/code/node_modules
- ember_osf_web_dist_vol:/ember_osf_web
- preprints_dist_vol:/preprints
- registries_dist_vol:/registries
- reviews_dist_vol:/reviews
stdin_open: true

0 comments on commit a0cc29c

Please sign in to comment.