feat: Adds todos, updates Dockerfile to use hpa as the entrypoint.
This commit is contained in:
7
TODO.md
Normal file
7
TODO.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# TODO
|
||||
|
||||
- [ ] Build docker images in ci.
|
||||
- [ ] Generate documentation for docker usage.
|
||||
- [ ] Generally need to create a local wrapper script to mount volumes.
|
||||
- [ ] Completions can be installed / used with the wrapper script by calling
|
||||
`docker run --it --rm <image> --generate-completion-script <shell> > /path/to/completions/on/local`
|
||||
@@ -56,11 +56,6 @@ RUN export DEBIAN_FRONTEND=nointeractive DEBCONF_NOINTERACTIVE_SEEN=true && \
|
||||
|
||||
COPY --from=build /staging/hpa /usr/local/bin
|
||||
|
||||
# Setup completion
|
||||
RUN mkdir /root/.bash_completion && \
|
||||
echo "source /root/.bash_completion/hpa.bash" >>/root/.bashrc && \
|
||||
/usr/local/bin/hpa --generate-completion-script bash >/root/.bash_completion/hpa.bash
|
||||
|
||||
# Setup volumes
|
||||
RUN mkdir /config && \
|
||||
mkdir /consults && \
|
||||
@@ -72,4 +67,5 @@ RUN mkdir /config && \
|
||||
|
||||
VOLUME /config /consults /playbook /template
|
||||
|
||||
CMD ["/bin/bash", "-xc", "/usr/local/bin/hpa"]
|
||||
ENTRYPOINT [ "/usr/local/bin/hpa" ]
|
||||
CMD ["--help"]
|
||||
|
||||
Reference in New Issue
Block a user