Skip to content

Commit

Permalink
chore(release): updates to publish docker image under my own organisa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
michaelruocco committed May 13, 2024
1 parent 31f46ca commit 0c4ce6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cognito Local

![CI](https://github.com/jagregory/cognito-local/workflows/CI/badge.svg)
![CI](https://github.com/michaelruocco/cognito-local/workflows/CI/badge.svg)

A _Good Enough_ offline emulator for [Amazon Cognito](https://aws.amazon.com/cognito/).

Expand Down Expand Up @@ -220,13 +220,13 @@ cognito-local how to connect to your local Lambda server:

### via Docker

docker run --publish 9229:9229 jagregory/cognito-local:latest
docker run --publish 9229:9229 michaelruocco/cognito-local:latest

Cognito Local will now be listening on `http://localhost:9229`.

To persist your database between runs, mount the `/app/.cognito` volume to your host machine:

docker run --publish 9229:9229 --volume $(pwd)/.cognito:/app/.cognito jagregory/cognito-local:latest
docker run --publish 9229:9229 --volume $(pwd)/.cognito:/app/.cognito michaelruocco/cognito-local:latest

### via Node

Expand All @@ -252,12 +252,12 @@ environment variable:
If you're running in Docker, you can also rebind the [published ports](https://docs.docker.com/config/containers/container-networking/#published-ports)
when you run:

`docker run -p4000:9229 jagregory/cognito-local`
`docker run -p4000:9229 michaelruocco/cognito-local`

Or combine the two approaches by [setting an environment variable](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file)
when you run:

`docker run -p4000:4000 -e PORT=4000 jagregory/cognito-local`
`docker run -p4000:4000 -e PORT=4000 michaelruocco/cognito-local`

The same can be done in docker-compose with [environment variables](https://docs.docker.com/compose/environment-variables/#set-environment-variables-in-containers)
and [port binding](https://docs.docker.com/compose/networking/) in compose.
Expand Down Expand Up @@ -482,7 +482,7 @@ For example:

If a Custom Message lambda is configured, the output of the function invocation will be printed in the console too (verbosely!).

By default, confirmation codes are randomly generated. If set, the value assigned to the `CODE` environment variable will always be returned instead.
By default, confirmation codes are randomly generated. If set, the value assigned to the `CODE` environment variable will always be returned instead.

## Advanced

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/jagregory/cognito-local.git"
"url": "https://github.com/michaelruocco/cognito-local.git"
},
"release": {
"branches": [
Expand Down
8 changes: 4 additions & 4 deletions scripts/dockerBuildPush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ major_version=${versionArr[0]}

docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag jagregory/cognito-local:latest \
--tag jagregory/cognito-local:${major_version}-latest \
--tag jagregory/cognito-local:${version} \
--tag michaelruocco/cognito-local:latest \
--tag michaelruocco/cognito-local:${major_version}-latest \
--tag michaelruocco/cognito-local:${version} \
--push \
.

echo "{\"name\":\"Docker\",\"url\":\"https://hub.docker.com/r/jagregory/cognito-local\"}"
echo "{\"name\":\"Docker\",\"url\":\"https://hub.docker.com/r/michaelruocco/cognito-local\"}"

0 comments on commit 0c4ce6e

Please sign in to comment.