Giter Site home page Giter Site logo

docker-aptly's People

Contributors

bryanhong avatar janbraiins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-aptly's Issues

building debian dockerfile has problems

Hello,

The key has expired in this line:

RUN apt-key adv --keyserver keys.gnupg.net --recv-keys 9E3E53F19C7DE460

aptly-dev/aptly#717 has the new key:

RUN apt-key adv --keyserver keys.gnupg.net --recv-keys ED75B5A4483DA07C

Also the Aptly Bash completions fails. I didn't bother debugging and just commented it out to continue.

converted 'https://github.com/smira/aptly/raw/master/bash_completion.d/aptly' (ANSI_X3.4-1968) -> 'https://github.com/smira/aptly/raw/master/bash_completion.d/aptly' (UTF-8)                                                                     
--2020-07-18 02:52:16--  https://github.com/smira/aptly/raw/master/bash_completion.d/aptly                                                                                                                                                        
Resolving github.com (github.com)... 140.82.113.3                                                                                                                                                                                                 
Connecting to github.com (github.com)|140.82.113.3|:443... connected.                                                                                                                                                                             
HTTP request sent, awaiting response... 301 Moved Permanently                                                                                                                                                                                     
Location: https://github.com/smira/aptly-fork/raw/master/bash_completion.d/aptly [following]                                                                                                                                                      
converted 'https://github.com/smira/aptly-fork/raw/master/bash_completion.d/aptly' (ANSI_X3.4-1968) -> 'https://github.com/smira/aptly-fork/raw/master/bash_completion.d/aptly' (UTF-8)                                                           
--2020-07-18 02:52:16--  https://github.com/smira/aptly-fork/raw/master/bash_completion.d/aptly                                                                                                                                                   
Reusing existing connection to github.com:443.                                                                                                                                                                                                    
HTTP request sent, awaiting response... 404 Not Found                                                                                                                                                                                             
2020-07-18 02:52:16 ERROR 404: Not Found.                                                                                                                                                                                                         

aptly container fails when "/" filesystem is mounted read-only

Regarding the docker-aptly container: To implement the Docker CIS security benchmark (item 5.12 in the benchmark) we need to be able to run the aptly container with read-only "/" filesystem. However, it appears aptly requires "/" to be mounted rw on container startup, or else it fails as follows:

Aug 15 14:43:41 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: gpg: fatal: can't create directory `/root/.gnupg': Read-only file system
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: secmem usage: 0/0 bytes in 0/0 blocks of pool 0/65536
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: gpg: fatal: can't create directory `/root/.gnupg': Read-only file system
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: secmem usage: 0/0 bytes in 0/0 blocks of pool 0/65536
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: gpg: fatal: can't create directory `/root/.gnupg': Read-only file system
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: secmem usage: 0/0 bytes in 0/0 blocks of pool 0/65536
Aug 15 14:43:48 tfvm docker.05b9adcea05e/bryanhong/aptly:latest[18739]: ln: failed to create symbolic link '/root/.gnupg/secring.gpg': No such file or directory

The container is run as follows:

docker run --read-only --detach=true --log-driver=syslog --name="aptly" --restart=always --env FULL_NAME="First Last" --env EMAIL_ADDRESS="[email protected]" --env GPG_PASSWORD="PickAPassword" --env HOSTNAME=tfvm --volume /var/aptly:/opt/aptly --publish 8880:80 bryanhong/aptly:latest

a) Can the aptly docker container be configured to work with read-only "/" (i.e docker run with --read-only) flag?
b) If not, what are the technical reasons for this (which can be used to justify it under a security analysis)?

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.