You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1009 B

3 years ago
  1. FROM docker:stable-dind
  2. # Install dependencies
  3. RUN apk add --no-cache bash curl jq python3 wget docker-compose go
  4. # Create our working directory
  5. RUN mkdir /project
  6. # Switch to our working directory
  7. WORKDIR /project
  8. # Pull the LizardFS image used for creating the test environment
  9. RUN wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh -O /download-image.sh
  10. RUN chmod 744 /download-image.sh
  11. RUN mkdir -p /images/lizardfs
  12. RUN /download-image.sh /images/lizardfs kadimasolutions/lizardfs:latest
  13. # Copy in the docker compose file that we will use to create test LizardFS
  14. # clusters
  15. COPY ./docker-compose.yml /project/
  16. # Copy in the test scripts
  17. COPY ./test-environment.sh /test-environment.sh
  18. RUN chmod 744 /test-environment.sh
  19. COPY ./test-run.sh /test-run.sh
  20. RUN chmod 744 /test-run.sh
  21. # Copy in our entrypoint script
  22. COPY ./docker-entrypoint.sh /docker-entrypoint.sh
  23. RUN chmod 744 /docker-entrypoint.sh
  24. # Set the entrypoint
  25. ENTRYPOINT ["/docker-entrypoint.sh"]