Commit 4e3c704d authored by Muhammad Bilal's avatar Muhammad Bilal
Browse files

updated docker version in pod

parent 87c18edf
Pipeline #4491 passed with stage
in 9 minutes and 44 seconds
......@@ -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 \
......
......@@ -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(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment