Category : dockerfile

I want to build a docker image, via a dockerfile. There is one particular application, i would like the dockerfile to have. The way i install this application is i have some cmake files, and i use make, install. I want to have this functionality inside the dockefile. In other words, when the dockerfile is ..

Read more

When I login into a running container, and issue a bash –version command I am seeing the following [email protected]:/myapp# bash –version GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There ..

Read more

I have Asp.Net Core Web Api project (.Net Core 3.1) {WebApplication1} and respective unit test project {WebApplication1.Tests} and i’m trying to embed tests building in docker build process and abort it in case of either of tests fail. My docker file looks like below: FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM ..

Read more

I’m trying to configure a mongos router through docker, that I’ll then connect to, from my localhost. While configuring the mongos router, I’m using mongos –config <path to file> to specify my config file Dockerfile FROM mongo:4.4.4 COPY mongos.conf /etc/mongos.conf # TLS CA Root file COPY ca.crt /etc/mongodb/ssl/ca.crt # TLS Certificate key file COPY cert.pem ..

Read more

I am setting up a cicd pipeline that runs on kubernetes. The image builder is kaniko and it must push to azure acr. So, I’ve set up a kaniko + azure cli image with the following dockerfile: FROM gcr.io/kaniko-project/executor:latest as kaniko FROM alpine:latest COPY –from=kaniko /kaniko /kaniko RUN ls / ENV DOCKER_CONFIG /kaniko/.docker ENV SSL_CERT_DIR=/kaniko/ssl/certs ..

Read more

I created a docker-compose file to build image from dockerfile and then run container this is my code: Dockerfile FROM anapsix/alpine-java VOLUME [ "/var/run/jars/" ] ADD hello-world.jar /var/run/jars/ EXPOSE 8080 ENTRYPOINT [ "java" ] CMD ["-?"] docker-compose.yml version: ‘3’ services: hello-world-image: build: . image: hello-world-image hello-world: image: hello-world-image container_name: hello-world ports: – "8080:8080" volumes: – ..

Read more