Dockerfile 1.3 KB

1234567891011121314151617181920212223
  1. FROM launcher.gcr.io/google/debian9
  2. RUN apt-get update && apt-get install -y bash curl wget gnupg apt-transport-https apt-utils lsb-release \
  3. && rm -rf /var/lib/apt/lists/*
  4. RUN wget -O - https://debian.neo4j.com/neotechnology.gpg.key | apt-key add -
  5. RUN echo 'deb https://debian.neo4j.com stable 4.4' | tee -a /etc/apt/sources.list.d/neo4j.list
  6. RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
  7. RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-$(lsb_release -c -s) main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
  8. RUN echo "deb https://httpredir.debian.org/debian stretch-backports main" | tee -a /etc/apt/sources.list.d/stretch-backports.list
  9. RUN echo "neo4j-enterprise neo4j/question select I ACCEPT" | debconf-set-selections
  10. RUN echo "neo4j-enterprise neo4j/license note" | debconf-set-selections
  11. RUN apt-get update && apt-get install -y neo4j-enterprise=1:4.4.10 google-cloud-sdk unzip less \
  12. && rm -rf /var/lib/apt/lists/*
  13. RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip
  14. RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
  15. RUN mkdir /data
  16. ADD backup/backup.sh /scripts/backup.sh
  17. RUN chmod +x /scripts/backup.sh
  18. CMD ["/scripts/backup.sh"]