-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from sanger/develop
Prepare release of version 1.0.0
- Loading branch information
Showing
61 changed files
with
1,780 additions
and
1,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
## Setting up a complete development environment from scratch | ||
|
||
1. Start dependent services: RabbitMQ and RedPanda | ||
```bash | ||
./docker/dependencies/up.sh | ||
``` | ||
|
||
2. Setup RabbitMQ configuration (queues, etc). You may need to wait 30 seconds from the previous command | ||
```bash | ||
./docker/dependencies/up.sh | ||
``` | ||
|
||
1. Setup RabbitMQ configuration (queues, etc). You may need to wait 30 seconds from the previous command | ||
to run this one as it requires Rabbitmq to have started completely: | ||
```bash | ||
|
||
```bash | ||
python setup_dev_rabbit.py | ||
``` | ||
``` | ||
|
||
3. Load Redpanda schemas: | ||
```bash | ||
1. Load Redpanda schemas: | ||
|
||
```bash | ||
./schemas/push.sh http://localhost:8081 redpanda-test | ||
``` | ||
``` | ||
|
||
1. Build docker image | ||
|
||
4. Build docker image | ||
```bash | ||
```bash | ||
docker build . -t tol-lab-share:develop | ||
``` | ||
``` | ||
|
||
5. Create .env file with contents | ||
``` | ||
SETTINGS_MODULE=tol_lab_share.config.defaults | ||
LOCALHOST=host.docker.internal | ||
``` | ||
1. Create .env file with contents | ||
|
||
6. Start interactive bash in docker container | ||
```bash | ||
```text | ||
SETTINGS_MODULE=tol_lab_share.config.defaults | ||
LOCALHOST=host.docker.internal | ||
``` | ||
|
||
1. Start interactive bash in docker container | ||
|
||
```bash | ||
docker run -ti -v $(pwd):/code --env-file=.env --entrypoint bash tol-lab-share:develop | ||
``` | ||
``` | ||
|
||
7. Start the consumer service (inside the previous bash) | ||
```bash | ||
1. Start the consumer service (inside the previous bash) | ||
|
||
```bash | ||
pipenv run python main.py | ||
``` | ||
``` | ||
|
||
After this you should have: | ||
|
||
* Consumer (python main.py) running connected to Rabbitmq queue | ||
* Rabbitmq service running in http://localhost:8080/ with user/password: admin/development | ||
* Redpanda API service running in local in http://localhost:8081/ | ||
|
||
|
||
If you want to perform any changes in code, you can kill the consumer with Control-C, modify the code in local and then restart the consumer again using the same command | ||
If you want to perform any changes in code, you can kill the consumer with Control-C, modify the code in local and then restart the consumer again using the same command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
How to publish schemas | ||
---------------------- | ||
|
||
1. Ensure `jq` is installed: | ||
|
||
```bash | ||
brew install jq | ||
``` | ||
|
||
1. Run the command: | ||
|
||
```bash | ||
push.sh <REDPANDA_URL> <API_KEY> | ||
``` | ||
```bash | ||
push.sh <REDPANDA_URL> <API_KEY> | ||
``` | ||
|
||
where: | ||
where: | ||
|
||
``` | ||
<REDPANDA_URL>: URL to connect to RedPanda where the schemas will be uploaded | ||
<API_KEY>: secret key with write permission for redpanda | ||
``` | ||
```text | ||
<REDPANDA_URL>: URL to connect to RedPanda where the schemas will be uploaded | ||
<API_KEY>: secret key with write permission for redpanda | ||
``` | ||
|
||
How to remove last schemas created | ||
---------------------------------- | ||
|
||
1. Run the command: | ||
Run the command: | ||
|
||
```bash | ||
remove_all.sh <REDPANDA_URL> <API_KEY> | ||
remove_all.sh <REDPANDA_URL> <API_KEY> | ||
``` | ||
|
||
where: | ||
|
||
``` | ||
<REDPANDA_URL>: URL to connect to RedPanda where the schemas will be uploaded | ||
<API_KEY>: secret key with write permission for redpanda | ||
```text | ||
<REDPANDA_URL>: URL to connect to RedPanda where the schemas will be uploaded | ||
<API_KEY>: secret key with write permission for redpanda | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.