Skip to content

Commit fe363ec

Browse files
authored
Fixes Failed to fetch Jessie Updates When Building Error (#2)
* Update the APT source to the Debian Jessie archive. * Ignore temporary editor files. * Adding testing section to ReadMe and updated the example Dockerfiles.
1 parent 1c6d06b commit fe363ec

3 files changed

Lines changed: 28 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Temp Nano, VIM, etc, files.
2+
*.swp

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
FROM ruby:1.9.3
22

3-
# Install stuff
3+
# The Debian Jessie APT packages have been archived. Update where to
4+
# find the packages. If you don't do this you will get an error message
5+
# like:
6+
#
7+
# W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/InRelease
8+
#
9+
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
10+
11+
# Install stuff. Currently just the build essentials.
412
RUN apt-get update -qq && apt-get install -y build-essential
513

614
# Install Gems. Use Bundler 1.17.3 as 2+ does not work with

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ A Docker image that contains the latest versions of [RubyGems](https://github.co
44
```dockerfile
55
FROM ruby:1.9.3
66

7-
# Install stuff
7+
# The Debian Jessie APT packages have been archived. Update where to
8+
# find the packages. If you don't do this you will get an error message
9+
# like:
10+
#
11+
# W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/InRelease
12+
#
13+
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
14+
15+
# Install stuff. Currently just the build essentials.
816
RUN apt-get update -qq && apt-get install -y build-essential
917

1018
# Working folder.
@@ -24,7 +32,7 @@ RUN bundle install
2432
The files now look like:
2533

2634
```dockerfile
27-
FROM corigbytes/ruby-1.9.3:1.0.0`
35+
FROM corigbytes/ruby-1.9.3:1.0.1
2836

2937
# Working folder.
3038
RUN mkdir /app
@@ -108,6 +116,13 @@ The tagged versions are stable where as the latest version is not guaranteed to
108116

109117
You can find a full list of the built tags on [DockerHub](https://hub.docker.com/r/corgibytes/ruby-1.9.3/tags).
110118

119+
# Testing the Image
120+
When making changes to the image you can test you changes by running the following command in the root of the repository:
121+
122+
```bash
123+
docker build .
124+
```
125+
111126
# Contributing
112127
If you have any questions, notice a bug, or have a suggestion/enhancment please let me know by opening [issue](https://github.com/corgibytes/ruby_193_docker/issues) or [pull request](https://github.com/corgibytes/ruby_193_docker/pulls).
113128

0 commit comments

Comments
 (0)