Public Repository

Last pushed: 2 years ago
Short Description
Base TeamCity agent container.
Full Description
# docker run -e TEAMCITY_SERVER=http://buildserver:8111 -dt -p 9090:9090
FROM ubuntu:14.04

MAINTAINER Andrew Douglas <developers@trurating.com>

RUN apt-get update && apt-get install -y wget && apt-get clean && rm -rf /var/lib/apt/lists

# Install java-8
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections

RUN apt-get update && \
    apt-get install -y --no-install-recommends software-properties-common && \
    add-apt-repository ppa:webupd8team/java && \
    apt-get update && \
    apt-get install -y --no-install-recommends oracle-java8-installer && \
    rm -rf /var/lib/apt/lists/*

# Install python
RUN apt-get update && \
  apt-get install -y python python-dev python-pip python-virtualenv && \
  rm -rf /var/lib/apt/lists/*

# Add setup script and create a user
ADD setup-agent.sh /setup-agent.sh
RUN chmod +x /setup-agent.sh
RUN adduser --disabled-password --gecos "" teamcity
RUN sed -i -e "s/%sudo.*$/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/" /etc/sudoers
RUN usermod -a -G sudo teamcity

EXPOSE 9090

CMD sudo -E -u teamcity /setup-agent.sh
Docker Pull Command
Owner
trurating

Comments (0)