https://github.com/korniichuk/pb
Solution for Pitney Bowes's recruitment test
https://github.com/korniichuk/pb
pb pitney-bowes pitneybowes recruitment-task
Last synced: 7 months ago
JSON representation
Solution for Pitney Bowes's recruitment test
- Host: GitHub
- URL: https://github.com/korniichuk/pb
- Owner: korniichuk
- License: unlicense
- Created: 2020-06-03T01:20:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T01:24:45.000Z (over 5 years ago)
- Last Synced: 2025-01-17T08:28:22.448Z (9 months ago)
- Topics: pb, pitney-bowes, pitneybowes, recruitment-task
- Language: Python
- Homepage: http://www.korniichuk.com
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pb
**Name:** pb
**Description:** Solution for Pitney Bowes's recruitment test
**GitHub:** https://github.com/korniichuk/pb## Test task
Please, see [Test-readme.md](Test-readme.md) file.## Test solution
**Step 1:** Build an image from a Dockerfile
```
$ docker build -t korniichuk/pb .
```**Step 2:** Use `$ docker run` command
```
$ export db=
$ export s3_bucket=
$ docker run -v ~/.aws:/home/pb/.aws -e db -e s3_bucket korniichuk/pb
```Example:
```
$ export db=ruslan:passwd@demo.cluster-ro-c3rno4vis1ue.eu-central-1.rds.amazonaws.com:5432/example_db
$ export s3_bucket=example_bucket
$ docker run -v ~/.aws:/home/pb/.aws -e db -e s3_bucket korniichuk/pb
```Where:
* `ruslan` -- database username,
* `passwd` -- database password (**Note:** Quote special characters with `\`),
* `demo.cluster-ro-c3rno4vis1ue.eu-central-1.rds.amazonaws.com` -- database host,
* `5432` -- database port,
* `example_db` -- database name,
* `example_bucket` -- name of Amazon S3 bucket.To share the host file system, credentials, and configuration to the container, mount the host system's `~/.aws` directory to the container at `/home/pb/.aws` with the `-v` flag to the docker run command. For more information about the `-v` flag and mounting, see the [Docker reference guide](https://docs.docker.com/storage/volumes/).
**Step 3:** Verify result in Amazon S3 bucket