Manage a pool of nodes for a distributed test infrastructure
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.

Dockerfile 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (c) 2019 Red Hat, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  12. # implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. FROM opendevorg/python-builder as builder
  16. COPY . /tmp/src
  17. RUN assemble
  18. FROM opendevorg/python-base as nodepool
  19. COPY --from=builder /output/ /output
  20. RUN /output/install-from-bindep
  21. ### Containers should NOT run as root as a good practice
  22. RUN chmod g=u /etc/passwd
  23. ENV APP_ROOT=/var/lib/nodepool
  24. ENV HOME=${APP_ROOT}
  25. ENV USER_NAME=nodepool
  26. USER 10001
  27. COPY tools/uid_entrypoint.sh /uid_entrypoint
  28. ENTRYPOINT ["/uid_entrypoint"]
  29. CMD ["/usr/local/bin/nodepool"]
  30. FROM nodepool as nodepool-launcher
  31. CMD ["/usr/local/bin/nodepool-launcher", "-f"]
  32. FROM nodepool as nodepool-builder
  33. CMD ["/usr/local/bin/nodepool-builder", "-f"]