You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,22 @@ The master branch will sometimes have changes that are still in the process of b
8
8
9
9
### How to build Docker images
10
10
11
-
Steps to build Ruby-2.3.1 image
11
+
Steps to build Ruby2.3.1 image
12
12
13
13
* Run `git clone https://github.com/aws/aws-codebuild-docker-images.git` to download this repository to your local machine
14
-
* Run `cd ubuntu/ruby/2.3.1` to change the directory in your local workspace. This is the location of Ruby-2.3.1 Dockerfile with Ubuntu base.
15
-
* Run `docker build -t aws/codebuild/ruby-2.3.1 .` to build Docker image locally
16
-
* Once succeeded, your can run `docker run -ti aws/codebuild/ruby-2.3.1 bash` to start container running `bash` shell with the ruby-2.3.1 image.
14
+
* Run `cd ubuntu/ruby/2.3.1` to change the directory in your local workspace. This is the location of the Ruby 2.3.1 Dockerfile with Ubuntu 14.04 base.
15
+
* Run `docker build -t aws/codebuild/ruby:2.3.1 .` to build Docker image locally
17
16
17
+
To poke around in the image iteractively, build it and run:
18
+
`docker run -it --entrypoint sh aws/codebuild/ruby:2.3.1 -c bash`
19
+
20
+
To let the Docker daemon start up in the container, build it and run:
21
+
`docker run -it --privileged aws/codebuild/ruby:2.3.1 bash`
0 commit comments