Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
csst
Scalebox Apps
Commits
0d2ab4c9
Commit
0d2ab4c9
authored
2 years ago
by
zxl
Browse files
Options
Download
Email Patches
Plain Diff
modify message interface with DFS : redis recv
parent
40552bd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
L1/dockerfiles/redis-cli/Dockerfile
L1/dockerfiles/redis-cli/Dockerfile
+9
-0
L1/dockerfiles/redis-cli/Makefile
L1/dockerfiles/redis-cli/Makefile
+14
-0
L1/dockerfiles/redis-cli/run.sh
L1/dockerfiles/redis-cli/run.sh
+21
-0
No files found.
L1/dockerfiles/redis-cli/Dockerfile
0 → 100644
View file @
0d2ab4c9
FROM
hub.cstcloud.cn/scalebox/agent
# 安装redis-cli
RUN
apt-get update
\
&&
apt-get
install
-y
redis
ENV
REDIS_SERVER=192.169.23.2
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
This diff is collapsed.
Click to expand it.
L1/dockerfiles/redis-cli/Makefile
0 → 100644
View file @
0d2ab4c9
IMAGE_NAME
:=
csst/redis-cli
build
:
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
docker save
$(IMAGE_NAME)
| zstdmt | pv | ssh c0
'zstd -d | docker load'
push
:
docker push
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
This diff is collapsed.
Click to expand it.
L1/dockerfiles/redis-cli/run.sh
0 → 100644
View file @
0d2ab4c9
#!/bin/bash
while
true
do
obsid
=
$(
redis-cli
-h
${
REDIS_SERVER
}
-a
123456 rpop single-image-reduction:obsid
)
echo
"obsid : "
$obsid
if
[
-z
"
$obsid
"
]
;
then
echo
"obsid is empty"
exit
0
else
echo
"obsid is not empty"
send-message
$obsid
code
=
$?
#code值不为0时,退出
if
[
$code
-ne
0
]
;
then
exit
$code
fi
fi
echo
$code
done
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment