Closed bduisenov closed 6 years ago
You can create your own docker image based on 'jetbrains/teamcity-agent' one with software you need.
@VladRassokhin thanks for a quick response. I'm currently in the process of doing this. Do you have this in roadmap?
No, so far there's no plan to include docker-compose into image.
Can someone please elaborate on how to solve this issue? because I'm getting the same.
@fouadroumieh create new docker image based on jetbrains/teamcity-agent:latest
one with additional RUN
steps which would install docker-compose.
@VladRassokhin I managed to install docker-compose, but now the step goes always successful after execution, even if I put wrong yml file name!
@fouadroumieh did you make any progress with this?
@dhatawesomedude not really, it was kind of PoC work and I didn't go further with that.
In case if you are still looking for solution, here is my variant. I added compose to agent like this:
FROM jetbrains/teamcity-agent
# Install compose
RUN curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose
I also thought that if Docker is supported then Docker compose should be too. But on agent's page in "Incompatible configurations" I see my build with note: "Unmet requirements: dockerCompose.version exists".
I solved the problem by manually installing docker compose inside agent container:
# login to agent container bash
docker exec -it tc_agent /bin/sh
# install docker-compose
apt-get install docker-compose
# now exit back to host machine
exit
# now lets restart it so tc server will reread it
docker restart tc_agent
You might need to go to agents page and authorize the agent again.
Hope this helps
Ok, since we do have support for docker-compose in TeamCity it makes sense to add it into docker images. Will do that for TeamCity 2018.1
I like @stokito version and have converted it to Dockerfile
form:
FROM jetbrains/teamcity-agent
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
docker-compose \
; \
rm -rf /var/lib/apt/lists/*
Right now this installs 1.8.0 version of Compose. Don't forget that 1.8 version is obsolete crap.
Hi, I'm running some integration tests through
gradle
which in turn startdocker-compose
services. As for now, I'm getting an error during the build which tells thatdocker-compose
was not found.How do I install
docker-compose
command into TC agent?