Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservice
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
masi9606
webservice
Commits
9056aa49
Commit
9056aa49
authored
7 months ago
by
schnarkus
Browse files
Options
Downloads
Patches
Plain Diff
prepare redis dev
parent
373a0c11
No related branches found
No related tags found
No related merge requests found
Pipeline
#68919
passed
7 months ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Containerfile
+11
-0
11 additions, 0 deletions
Containerfile
local-environment/redis.sh
+27
-0
27 additions, 0 deletions
local-environment/redis.sh
local-environment/redis/data
+0
-0
0 additions, 0 deletions
local-environment/redis/data
with
38 additions
and
0 deletions
Containerfile
+
11
−
0
View file @
9056aa49
...
...
@@ -4,8 +4,19 @@ FROM ubuntu:22.04
COPY
artifact.bin /artifact.bin
# Set more environment variables for the web service
ENV
VERSION=1.0.0
ENV
FONT_COLOR=blue
ENV
LOG_LEVE=error
ENV
ENV_NAME=development
ENV
HOST=0.0.0.0
ENV
PORT=8080
ENV
DB_HOST=redis_container
ENV
DB_PORT=6379
ENV
DB_NAME=0
ENV
DB_USERNAME=
ENV
DB_PASSWORD=
EXPOSE
8080
CMD
["/artifact.bin"]
This diff is collapsed.
Click to expand it.
local-environment/redis.sh
0 → 100755
+
27
−
0
View file @
9056aa49
#!/bin/bash
REDIS_CONTAINER_NAME
=
"redis_container"
REDIS_PORT
=
"6379"
# Stop and remove old Redis container
podman stop
$REDIS_CONTAINER_NAME
podman
rm
-f
$REDIS_CONTAINER_NAME
# Pull Redis images
podman pull redis
podman pull redis-server
# Run Redis container with persistent storage
podman run
-d
\
-v
./redis/data:/usr/local/etc/redis
\
-p
$REDIS_PORT
:
$REDIS_PORT
\
--name
$REDIS_CONTAINER_NAME
\
redis redis-server
--save
60 1
--loglevel
warning
echo
"Redis setup complete..."
#Look inside
#podman exec -it redis_container redis-cli
#KEYS *
#GET state:bar
#KEYS state:*
This diff is collapsed.
Click to expand it.
local-environment/redis/data
0 → 100755
+
0
−
0
View file @
9056aa49
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment