-
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.
- Loading branch information
Showing
5 changed files
with
93 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM rediscommander/redis-commander:latest as redis-commander | ||
|
||
FROM redis:bookworm | ||
|
||
RUN apt-get update && apt-get install -y curl \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ | ||
&& apt-get install -y nodejs \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=redis-commander /redis-commander /redis-commander | ||
COPY images/redisdev/entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
EXPOSE 6379 8081 | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD [ "sleep", "infinity" ] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
redis-server & | ||
|
||
node /redis-commander/bin/redis-commander.js --redis-host 127.0.0.1 --redis-label local --port 8081 & | ||
|
||
until curl -s http://localhost:8081; do | ||
sleep 2 | ||
done | ||
|
||
exec "$@" | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "redisdev", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"metadata": { | ||
"version": "1.0.0", | ||
"registries": [ | ||
"ghcr.io", | ||
"docker.io" | ||
], | ||
"namespace": "ebizbase/redisdev", | ||
"labels": { | ||
"org.opencontainers.image.source": "https://github.com/ebizbase/dev-infras", | ||
"org.opencontainers.image.description": "Redis development image with redis and redis-commander", | ||
"org.opencontainers.image.licenses": "MIT" | ||
} | ||
}, | ||
"tags": [], | ||
"targets": { | ||
"build": { | ||
"executor": "@ebizbase/nx-docker:build", | ||
"options": { | ||
"load": true, | ||
"tags": [ | ||
"edge" | ||
] | ||
} | ||
}, | ||
"test": { | ||
"dependsOn": [ | ||
"build" | ||
], | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "docker run --rm -p 8081:8081 ebizbase/redisdev:edge curl -s localhost:8081" | ||
} | ||
}, | ||
"publish": { | ||
"executor": "@ebizbase/nx-docker:build", | ||
"options": { | ||
"push": true, | ||
"tags": [ | ||
"latest", | ||
"{major}", | ||
"{major}.{minor}", | ||
"{major}.{minor}.{patch}" | ||
] | ||
} | ||
} | ||
} | ||
} |
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