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
1a61857f
Commit
1a61857f
authored
7 months ago
by
schnarkus
Browse files
Options
Downloads
Patches
Plain Diff
set up redis dev
parent
97db77d6
No related branches found
No related tags found
No related merge requests found
Pipeline
#68924
failed
7 months ago
Stage: test
Stage: build
Stage: publish
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Containerfile
+7
-2
7 additions, 2 deletions
Containerfile
local-environment/redis.sh
+3
-5
3 additions, 5 deletions
local-environment/redis.sh
local-environment/redis/data
+0
-0
0 additions, 0 deletions
local-environment/redis/data
with
11 additions
and
7 deletions
.gitignore
+
1
−
0
View file @
1a61857f
...
@@ -3,3 +3,4 @@ artifact.bin
...
@@ -3,3 +3,4 @@ artifact.bin
*terraform*
*terraform*
.ssh
.ssh
kubectl*
kubectl*
db_pass
This diff is collapsed.
Click to expand it.
Containerfile
+
7
−
2
View file @
1a61857f
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
FROM
ubuntu:22.04
FROM
ubuntu:22.04
COPY
artifact.bin /artifact.bin
COPY
artifact.bin /artifact.bin
COPY
db_pass /db_pass
# Set more environment variables for the web service
# Set more environment variables for the web service
ENV
VERSION=1.0.0
ENV
FONT_COLOR=blue
ENV
HOST=0.0.0.0
ENV
HOST=0.0.0.0
ENV
PORT=8080
ENV
PORT=8080
ENV
DB_HOST=localhost
ENV
DB_HOST=localhost
ENV
DB_PORT=6379
ENV
DB_NAME=0
ENV
DB_PASSWORD=/db_pass
ENV
FONT_COLOR=blue
EXPOSE
8080
EXPOSE
8080
...
...
This diff is collapsed.
Click to expand it.
local-environment/redis.sh
+
3
−
5
View file @
1a61857f
...
@@ -13,15 +13,13 @@ podman pull redis-server
...
@@ -13,15 +13,13 @@ podman pull redis-server
# Run Redis container with persistent storage
# Run Redis container with persistent storage
podman run
-d
\
podman run
-d
\
-v
./redis/
data
:/usr/local/etc/redis
\
-v
./redis/
conf
:/usr/local/etc/redis
\
-p
$REDIS_PORT
:
$REDIS_PORT
\
-p
$REDIS_PORT
:
$REDIS_PORT
\
--name
$REDIS_CONTAINER_NAME
\
--name
$REDIS_CONTAINER_NAME
\
redis redis-server
--save
60 1
--loglevel
warning
redis redis-server
--save
60 1
--loglevel
warning
echo
"Redis setup complete..."
echo
"Redis setup complete..."
#
Look inside
#
curl -X PUT --header 'Content-Type: text/plain; charset=utf-8' --data 'foo' http://localhost:8080/state/bar
#podman exec -it redis_container redis-cli
#podman exec -it redis_container redis-cli
#KEYS *
#KEYS *
#GET state:bar
\ No newline at end of file
#KEYS state:*
This diff is collapsed.
Click to expand it.
local-environment/redis/data
deleted
100755 → 0
+
0
−
0
View file @
97db77d6
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