GithubHelp home page GithubHelp logo

aptible / docker-ubuntu Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 18.0 32 KB

Ubuntu base image with custom Aptible patches and Dockerfile building tools

License: MIT License

Makefile 52.29% Shell 27.60% HTML 20.11%

docker-ubuntu's People

Contributors

aaw avatar almathew avatar ch4s3 avatar joshraker avatar krallin avatar mattwiese-aptible avatar usernotfound avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-ubuntu's Issues

Install libpam with --disable-audit option on Ubuntu 14.04

See the this Dockerfile for the magic incantation.

This seems to both fix some issues with cron permissions that @sandersonet saw and fix an issue that we saw on images that ran adduser. Previously, we've patched the latter issue in a few images like our postgres image by running RUN ln -s -f /bin/true /usr/bin/chfn before any adduser commands, but it looks like this is a more complete fix for the entire class of these PAM permission errors that can happen in Docker images.

. and source don't work :(

I am upgrading on of my Aptible's image based on ubuntu:14.04, and for some strange reason neither . or source would work. These tools would complain that they couldn't find the file (which was added with COPY directive and manually confirmed to be present in the working directory), and as a result I can't utilize the .aptible.env in my build.

The same issue is present on your debian base image, as well as the official ubuntu and debian images from docker-library. Switching to alpine images seems to avoid it.

Steps to reproduce:

  • Dockerfile
FROM quay.io/aptible/ubuntu:14.04

COPY test.env ./
RUN cat test.env
RUN . test.env && echo $GREET
  • test.env
GREET=Hello,\ World!
  • docker build --no-cache .
Sending build context to Docker daemon 3.072 kB
Step 1/4 : FROM quay.io/aptible/ubuntu:14.04
# Executing 1 build trigger...
Step 1/1 : RUN apt-get -o Dir::Etc::SourceList=/tmp/security.list update          && apt-get -o Dir::Etc::SourceList=/tmp/security.list upgrade -y          && rm -rf /var/lib/apt/lists/*
 ---> Running in decdd5f717ac
Get:1 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security/main Sources [167 kB]
Get:3 http://archive.ubuntu.com trusty-security/restricted Sources [5066 B]
...
Setting up openssh-client (1:6.6p1-2ubuntu2.8) ...
Setting up openssl (1.0.1f-1ubuntu2.22) ...
Setting up git-man (1:1.9.1-1ubuntu0.5) ...
Setting up git (1:1.9.1-1ubuntu0.5) ...
Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
 ---> 22f7b7b9965b
Removing intermediate container decdd5f717ac
Step 2/4 : COPY test.env ./
 ---> 96a92daefc7d
Removing intermediate container ae2e5bf808b7
Step 3/4 : RUN cat test.env
 ---> Running in 2ac672b054b7
GREET=Hello,\ World!
 ---> 028e350fdde7
Removing intermediate container 2ac672b054b7
Step 4/4 : RUN . test.env && echo $GREET
 ---> Running in 5a9f163e2cdf
/bin/sh: 1: .: test.env: not found
The command '/bin/sh -c . test.env && echo $GREET' returned a non-zero code: 2

Default postgres-client version mismatched

sudo apt-get install postgresql-client installs client tools for version 9.1.1 of postgreSQL. sudo apt-get install postgresql-client-9.3 fails to find a suitable package.

While installing client tools for version 9.3 is possible by following the instructions at http://www.postgresql.org/download/linux/ubuntu/, it seems like it would make sense to install 9.3 version tools by default as the postgreSQL servers provisioned on the Aptible dashboard are version 9.3.

Failed to fetch http://ppa.launchpad.net/rwky/redis/ubuntu/dists/trusty/main/binary-amd64/Packages 403 Forbidden

RUN apt-get update && apt-get install -yqq mysql-server-5.5 libmysqlclient18 libmysqlclient-dev
---> Running in f96a3d8a7d38
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:3 http://ppa.launchpad.net trusty InRelease [20.8 kB]
Ign http://ppa.launchpad.net trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Get:4 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:5 http://ppa.launchpad.net trusty Release.gpg [316 B]
Get:6 http://archive.ubuntu.com trusty Release [58.5 kB]
Ign http://ppa.launchpad.net trusty Release.gpg
Get:7 http://ppa.launchpad.net trusty Release [15.1 kB]
Ign http://ppa.launchpad.net trusty Release
Get:8 http://archive.ubuntu.com trusty-updates/main Sources [409 kB]
Err http://ppa.launchpad.net trusty/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages

Get:9 http://archive.ubuntu.com trusty-updates/restricted Sources [6322 B]
Err http://ppa.launchpad.net trusty/main amd64 Packages

Get:10 http://archive.ubuntu.com trusty-updates/universe Sources [195 kB]
Err http://ppa.launchpad.net trusty/main amd64 Packages
403 Forbidden
Get:11 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1043 kB]
Get:12 http://ppa.launchpad.net trusty/main amd64 Packages [7796 B]
Get:13 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB]
Get:14 http://ppa.launchpad.net trusty/main amd64 Packages [756 B]
Get:15 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [436 kB]
Get:16 http://archive.ubuntu.com trusty-security/main Sources [147 kB]
Get:17 http://archive.ubuntu.com trusty-security/restricted Sources [4931 B]
Get:18 http://archive.ubuntu.com trusty-security/universe Sources [67.2 kB]
Get:19 http://archive.ubuntu.com trusty-security/multiverse Sources [3195 B]
Get:20 http://archive.ubuntu.com trusty-security/main amd64 Packages [696 kB]
Get:21 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.1 kB]
Get:22 http://archive.ubuntu.com trusty-security/universe amd64 Packages [198 kB]
Get:23 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [4795 B]
Get:24 http://archive.ubuntu.com trusty/main Sources [1064 kB]
Get:25 https://oss-binaries.phusionpassenger.com trusty InRelease
Ign https://oss-binaries.phusionpassenger.com trusty InRelease
Get:26 http://archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:27 http://archive.ubuntu.com trusty/universe Sources [6399 kB]
Get:28 https://oss-binaries.phusionpassenger.com trusty Release
Get:29 https://oss-binaries.phusionpassenger.com trusty/main amd64 Packages
Get:30 http://archive.ubuntu.com trusty/main amd64 Packages [1350 kB]
Get:31 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:32 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
Fetched 18.3 MB in 5s (3208 kB/s)
W: Failed to fetch http://ppa.launchpad.net/rwky/redis/ubuntu/dists/trusty/main/binary-amd64/Packages 403 Forbidden

E: Some index files failed to download. They have been ignored, or old ones used instead.
2017/12/11 10:15:07 The command [/bin/sh -c apt-get update && apt-get install -yqq mysql-server-5.5 libmysqlclient18 libmysqlclient-dev] returned a non-zero code: 100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.