Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
memri
Pod
Commits
4e3c704d
Commit
4e3c704d
authored
Oct 20, 2021
by
Muhammad Bilal
Browse files
updated docker version in pod
parent
87c18edf
Pipeline
#4491
passed with stage
in 9 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
4e3c704d
...
...
@@ -33,7 +33,10 @@ RUN cargo build --release && mv target/release/pod ./ && rm -rf target
FROM
debian:buster-slim
COPY
--from=cargo-build /usr/src/pod/pod pod
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
&&
apt-get
install
-y
docker.io libsqlcipher-dev curl
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
&&
apt-get
install
-y
libsqlcipher-dev apt-transport-https ca-certificates curl software-properties-common gnupg2
\
&&
curl
-fsSL
https://download.docker.com/linux/debian/gpg | apt-key add -
\
&&
add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/debian
$(
lsb_release
-cs
)
stable"
\
&&
apt-get update
&&
apt-get
install
-y
docker-ce
&&
rm
-rf
/var/lib/apt/lists/
*
ARG
use_kubernetes=false
RUN if
[
"
$use_kubernetes
"
=
"true"
]
;
then
\
curl
-LO
https://storage.googleapis.com/kubernetes-release/release/
"
$(
curl
-s
https://storage.googleapis.com/kubernetes-release/release/stable.txt
)
"
/bin/linux/amd64/kubectl
\
...
...
src/plugin_run.rs
View file @
4e3c704d
...
...
@@ -140,6 +140,7 @@ fn run_docker_container(
);
let
args
:
Vec
<
String
>
=
vec!
[
"run"
.to_string
(),
"--pull=always"
.to_string
(),
format!
(
"--network={}"
,
docker_network
),
format!
(
"--env=POD_FULL_ADDRESS={}"
,
...
...
@@ -150,7 +151,6 @@ fn run_docker_container(
format!
(
"--env=POD_OWNER={}"
,
pod_owner
),
format!
(
"--env=POD_AUTH_JSON={}"
,
pod_auth
),
format!
(
"--name={}"
,
sanitize_docker_name
(
&
container_id
)),
"--pull=always"
.to_string
(),
"--rm"
.to_string
(),
"--"
.to_string
(),
container_image
.to_string
(),
...
...
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