diff options
| author | luc <luc@debianluc> | 2016-05-13 13:35:38 +0200 |
|---|---|---|
| committer | luc <luc@debianluc> | 2016-05-13 13:35:38 +0200 |
| commit | 0b68fef7b5a131c31c5343a5e89c44c04ef28668 (patch) | |
| tree | e318fb9ceb723de5e4fec8517a8c391e4ca5bc65 /docker | |
| parent | 05565014daa6cdc67fe035504011334f98bb89ad (diff) | |
Fixed initial admin password initialization
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/Dockerfile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index be0b9c474..0f1be4b83 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,9 +12,6 @@ RUN apt-get update && apt-get install -yq \ # set current working dir WORKDIR /opt -# initial admin password can be set through environment variable -ENV YACY_ADMIN_PASS docker - # clone main YaCy git repository (we need to clone git repository to generate correct version when building from source) RUN git clone https://github.com/yacy/yacy_search_server.git @@ -27,8 +24,8 @@ WORKDIR /opt/yacy_search_server # Compile with ant RUN ant compile -# Set admin password from env variable in yacy.init file -RUN sed -i "/adminAccount=/c\adminAccount=admin:$YACY_ADMIN_PASS" /opt/yacy_search_server/defaults/yacy.init +# Set initial admin password : "docker" +RUN sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:e672161ffdce91be4678605f4f4e6786" /opt/yacy_search_server/defaults/yacy.init # make some cleaning to reduce image size RUN rm -rf .git && apt-get clean |
