docker-tools | Docker-related tools and scripts | Continuous Deployment library
kandi X-RAY | docker-tools Summary
kandi X-RAY | docker-tools Summary
Docker-related tools and scripts
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-tools
docker-tools Key Features
docker-tools Examples and Code Snippets
Community Discussions
Trending Discussions on docker-tools
QUESTION
I was reading the documentation on adding a Dockerfile from VS2017. When I click Add Docker Support
I get a prompt Target OS:
.
My understanding is that the whole point of Docker is that it doesn't really care on what system it is. So why the target OS prompt?
Edit: My understanding was that if a target OS kernel image is pulled down, then this can sit on top of any OS. This would increase the image size, but work on any OS. Is this wrong?
...ANSWER
Answered 2019-Feb-22 at 02:06Containers are not distinct from the host operating system. When you choose a "Target OS", what you are selecting is the "host" OS for the container. Selecting Windows allows you to run software in your container that expects to be supported by a Windows Kernel and APIs. The software in a Linux container expects the support of the underlying Linux kernel and APIs.
QUESTION
I'm currently facing a problem with the gitlab.com shared-runners. What I'm trying to archieve in my pipeline is:
- NPM install and using grunt to make some uncss, minimize and compress tasks
- Cleaning up
- Building a docker container with the app included
- Moving the container to gitlab registry
Unfortunateley I don't get it running since a long time! I tried a lot of different gitlab.ci configs - without success. The problem is, that I have to use the "image: docker:latest" to have all the docker-tools running. But then I don't have node and grunt installed in the container.
Also the other way around is not working. I was trying to use image: centos:latest and install docker manually - but this is also not working as I always just get a Failed to get D-Bus connection: Operation not permitted
Does anyone has some more experience on the gitlab-ci using docker build commands in a docker shared runner?
Any help is highly appreciated!!
Thank you
Jannik
ANSWER
Answered 2017-Jun-03 at 15:56Gitlab can be a bit tricky :) I dont have an example based on CentOS, but I have one based on Ubuntu if that helps you. Here is some copy paste of a working gitlab pipeline of mine which uses gulp (you should be easily able to adjust it to work with your grunt).
The .gitlab-ci.yml looks like this (adjust the CONTAINER... variables at the beginning):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-tools
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page