Serving react app with NGINX on /admin instead of / loads files but does not render application

I’m having a bit of an issue serving my react application through the NGINX docker container on Kubernetes. The end point is alive, I can see it load it’s resources…but that is it. It does not render anything. Here is the Dockerfile: FROM node:8.1.0-alpine AS builder RUN mkdir /home/app WORKDIR /home/app COPY package.json . RUN […]

centos docker:Error while pulling image

I’m installing docker on CentOS 7 and i have this issue : $ proxychains4 docker run hello-world [proxychains] config file found: /usr/local/etc/proxychains.conf [proxychains] preloading /usr/local/lib/libproxychains4.so [proxychains] DLL init: proxychains-ng 4.12 Unable to find image ‘hello-world:latest’ locally Pulling repository docker.io/library/hello-world docker: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: tls: oversized record received with length 26992. the docker […]

Gulp command in Docker container code 139

I have this docker-compose file : rest-api: image: x/rest-api build: context: ./rest-api/dockerfiles/ dockerfile: local.Dockerfile environment: – BUILD_ENV=local ports: – “8001:8001” volumes: – ./rest-api:/var/www/rest-api user: $UID web: image: x/web-front build: context: ./web-front dockerfile: dockerfiles/local.Dockerfile environment: – BUILD_ENV=local depends_on: – rest-api links: – rest-api ports: – “3001:3001” – “35729:35729” volumes: – ./web-front:/var/www/web-front – ./web-front/logs/:/root/.npm/ user: $UID and […]

Share data between 2 containers

I do a Symfony project with Docker. In development, I mount my source folder in Nginx and PHP-FPM containers. But for the production, I want to put the code in the PHP-FPM container to do an app container, and share the code with the Nginx container. In my Dockerfile, I use a VOLUME /var/www/html, but […]

docker-compose v3: sharing bind-mounted volume between multiple containers with top-level volumes syntax

With v2 of docker-compose synthax, we were able to do something like this: version: ‘2’ services: app: image: tianon/true volumes: – ../app:/var/www/app nginx: image: nginx volumes_from: – app php: image: php volumes_from: – app In v3.2 volumes_from is now invalid option. The documentation is all for using new top-level volumes synthax, which is all the […]

How to install phpMyAdmin on Mage2 DevBox

I have copied phpMyAdmin to thew webroot but it will not run as mysqlli is not installed. First step was to ssh into the web server docker-compose exec –user=magento2 web /bin/bash Then install mysqli sudo su docker-php-ext-install mysqli Which has allowed phpMyAdmin copied into the webroot folder to run but it’s still unable to connect […]

When run docker-compose up I get python: can't open file 'manage.py': [Errno 2] No such file or directory

This is my Dockerfile: FROM python:3.6.1 # set working directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # add requirements (to leverage Docker cache) ADD ./requirements.txt /usr/src/app/requirements.txt # install requirements RUN pip install -r requirements.txt # add app ADD . /usr/src/app # run server CMD python manage.py runserver -h 0.0.0.0 This is my docker-compose.yml: version: ‘2.1’ […]

docker call program (nodejs) from another container (supervisor)

My docker-compose.yml is like: nodejs: build: . dockerfile: Dockerfile-nodejs tty: true ports: – “${SOCKET_PORT}:8081” volumes: – ../node:/var/www/html supervisor: build: . dockerfile: Dockerfile-supervisor tty: true volumes: – ..:/var/www/html – ./config/supervisor/conf.d:/etc/supervisor/conf.d links: – nodejs:nodejs And I’ve created supervisor program config file: [program:nodejs.socket] command=nodejs /var/www/html/node/server.js autostart=true But: I can’t run this program, because supervisor’s container can’t find command […]

How to speed up an Azure web application deployment with lots of files?

At my work we have a .NET web application that is hosted in Azure. We use TeamCity to build our application and Octopus to deploy the application to Azure. We’ve been noticing that our deployments have started to increase in duration so I’ve been looking at the Octopus logs and it appears that the duration […]

concourse gradle java build CI

I am attempting to make a concourse CI pipeline for a java / gradle (vertx) build. I am getting similar error when using the gradle docker image to run the build from concourse or when running locally (directly using the same docker image) PS D:\Development\github\vertx-concourse-gradle> docker run –rm -v .:/project -w /project gradle:3.4-jdk8 gradle build […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.