Recently we moved from gitlab shell executor to docker+machine
executor.
So now here comes the challenge, in my .gitlab-ci.yml
I have couple of jobs like below:
stages:
- RUN_TESTS
build-docker:
stage: RUN_TESTS
script:
- echo "Running the tests..."
- apt-get update
- docker build -t run-tests .
- aws configure set aws_access_key_id ${effi_access_key}
- aws configure set aws_secret_access_key ${effi_secrect_key}
- aws configure set default.region ap-southeast-2
only:
- run-test
tags:
- shared-spot-runner
So I need to have a docker
image that has the ability to run apt-get update
and docker build -t run-tests .
and other aws
commands.
Problem is, how can I write a Dockerfile
that has all these dependecnies?