EmergingTechnologyInstitute / acmeair-netflixoss-dockerlocal

acmeair-netflixoss-dockerlocal
Apache License 2.0
33 stars 11 forks source link

Building acmeair/pwgen failed #10

Closed tkhinaba closed 10 years ago

tkhinaba commented 10 years ago

Following error occurred during building acmeair/pwgen.

Step 0 : FROM ubuntu:14.04
 ---> ba5877dc9bec
Step 1 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen
 ---> Running in a0715d40a6fb
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package pwgen
2014/08/01 16:03:16 The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen] returned a non-zero code: 100

workaround. pwgen/Dockerfile

FROM ubuntu:14.04

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen &&\
  apt-get clean &&\
  rm -Rf /var/cache/*

ENTRYPOINT ["pwgen"]

There are various ways of generating password string. I chose pwgen because it can use capitals and symbols. I did not add --symbols option since it might break the scripts. openssl rand is not bad. But it should be additionally installed to do this.