Category : dockerfile

Currently trying to learn docker. Cant seem to get selenium working inside container. My docker compose file looks like this version: ‘3.8’ services: hub: image: selenium/hub:3.141.59 ports: – 4444:4444 chrome: image: selenium/node-chrome:3.141.59 depends_on: – hub environment: – HUB_HOST=hub firefox: image: selenium/node-firefox:3.141.59 depends_on: – hub environment: – HUB_HOST=hub app: build: context: ./ volumes: – ./app:/app command: ..

Read more

I am trying to create a Dockerfile for my python program, which looks like the following: FROM python RUN mkdir data-validation-program ENV VIRTUAL_ENV=/opt/venv RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" WORKDIR /data-validation-program/data-validation-program COPY requirements.txt . RUN pip install -r requirements.txt COPY . . ENTRYPOINT ["python", "main.py"] My folder structure looks like the following – data-validation-program ..

Read more

Found a strange issue today, COPY fails when i try to copy unzipped files after docker unzip instruction. Locally this works fine, however it fails in gitlab pipeline. Dockerfile FROM caapim/gateway:10.0.00 ARG API_NAME=gateway USER root # Install awscli RUN yum -y update && yum clean all && yum -y install awscli # Install newrelic RUN ..

Read more

I am trying to use jPRofiler in a docker container to listen the performance of my app. I am trying to follow this guide: https://gist.github.com/Kevin-Lee/cbfbde89d68299304b1b1a2e6371fe06#visualvm-with-docker I should be able to connect to this container from outside via a browser. My app should be able to connect to it. I have this docker file, FROM java:8 ..

Read more