The last two weeks I'm searching for ways to automate the build of apps and as docker images/containers on Windows. There are some issues building containers currently:
GitLab runner issue
What I've done:
Running selfhosted GitLab installation
Windows 2016 trial
Docker is installed, docker -Version works
GitLab multirunner installed
Configured Runner in GitLab
HelloWorld Example build with runner worked
I'm wondering if there is somebody that could share some knowlegde about building Windows docker images from a GitLab repro.
The reason I would like to use Windows is a work related tryout :)
Related
We are running on Windows 10. Instructions said to mount a working
directory to a docker container. We have everything and still can't
get Tackle Test to run tests on applications. What are we missing?
I installed a new Windows Server 2022 and then followed the instructions to install Docker and Docker Compose on the Server. I also installed WSL and a Ubuntu20-04.
Then, I tried to run a docker-compose up command and it failed with the following error message.
Is there anyway for me to use Windows Server 2022 to run docker-compose?
A few steps here:
Set up your environment on that build, following the instructions here:
https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tab...
Given it's an Insider build, you may need this step as well:
https://hub.docker.com/_/microsoft-windows-servercore-insider
Then you can run a command like this to get your Windows Server 2022 Preview container images:
docker pull mcr.microsoft.com/windows/servercore/insider:10.0.20298.1
As a reference, these are Docker Hub Windows Server Base OS container image Insider release pages:
https://hub.docker.com/_/microsoft-windows-servercore-insider
https://hub.docker.com/_/microsoft-windows-nanoserver-insider
I am new to docker and I want to have the ionic environment/build dockerized. I have some steps in mind however for me it is not clear if I can run any xcode command in Docker.
Steps:
- Docker container with jenkins
- Run a build for ios with jenkins job if I am in a MacOS machine running Docker for MacOS (I heared that it is different from boot2docker but I have not tried yet)
- Docker container with android environment
- Run a build for android with jenkins job
Any suggestions?
Can I run Xcode in a docker container? I'd like to dockerise an Xcode CI system, just wondering if this is possible.
This answer is now likely to be out of date as it was written in 2015. It may still be useful as reference to reproduce the same
--
This repo from Docker Hackathon 2015 describes how to build and run iOS apps with the docker client. Is that what you're after?
Watch the video:
https://www.youtube.com/watch?v=CGHOH9Ocl1k
Secret sauce is in server.js that implements a REST API to simulate a docker server. So in fact it's not actually running iOS in a real Linux docker server - rather it implements the docker API and then acts as a proxy to ios-sim (run) and XCode (build).
Look at Docker-OSX which runs macOS with Xcode support inside Docker.
You can connect to that macOS via SSH or VNC and use Xcode on Linux
Circle CI has an option to use Xcode in a container. Here is an excerpt of my ci pipleline config:
ios-build-env: &ios-build-env
macos:
xcode: "11.4.1"
jobs:
ios-deploy:
<<: *ios-build-env
steps:
- checkout
...
Circles docs:
https://circleci.com/docs/2.0/testing-ios/
I have a server running CentOS 6.5, and I have already installed GitLab on it. I wanted to install GitLab CI as well - will installing it overwrite my current GitLab installation or is it completely separate from it?
I use both GitLab and GitLab CI all on the same host and it works fine - they are totally separate applications and work well together. Each application is installed into it's own home. I don't, but you could also run the GitLab CI Runner on the same box too.
Just follow the GitLab CI how-to and you'll be up and running in no time!
https://github.com/gitlabhq/gitlab-ci/blob/5-2-stable/doc/install/installation.md
A possible approach would be to use:
Docker
a DockerFile (like darthmuffins/gitlab-ci-runner-centos/Dockerfile, or the project sameersbn/docker-gitlab-ci-runner) in order to make a separate GitLab CI instance (running on the same server but acting like its own independent server).
In your case, that might be difficult, since CentOS 6.5 is built from the source packages of RHEL 6 update 5 (also known as RHEL version 6.5, kernel 2.6.32-431), which means Docker might not be fully supported.