Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ docker:
Would you like to publish your project in a Docker container?
You should select this if you are making a service.

docker_debug:
type: bool
when: "{{ docker }}"
help: |
Would you like to publish a debug image of your service?
This will increase the number of published images, but may
be useful if debugging the service inside of the cluster
infrastructure is required.

docs_type:
type: str
help: |
Expand Down
99 changes: 0 additions & 99 deletions docs/how-to/debug-in-cluster.md

This file was deleted.

Binary file removed docs/images/debugging-kubernetes.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion example-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ component_lifecycle: experimental
description: An expanded https://github.com/DiamondLightSource/python-copier-template to illustrate how it looks with all the options enabled.
distribution_name: dls-python-copier-template-example
docker: true
docker_debug: true
docs_type: sphinx
git_platform: github.com
github_org: DiamondLightSource
Expand Down
23 changes: 0 additions & 23 deletions template/Dockerfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,6 @@ ENV UV_PYTHON_INSTALL_DIR=/python
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-editable --no-dev --managed-python

{% if docker_debug %}
FROM build AS debug

{% if git_platform=="github.com" %}
# Set origin to use ssh
RUN git remote set-url origin git@github.com:{{github_org}}/{{repo_name}}.git
{% endif %}

# For this pod to understand finding user information from LDAP
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install libnss-ldapd -y
RUN sed -i 's/files/ldap files/g' /etc/nsswitch.conf

# Make editable and debuggable
RUN uv pip install debugpy
RUN uv pip install -e .
ENV PATH=/app/.venv/bin:$PATH

# Alternate entrypoint to allow devcontainer to attach
ENTRYPOINT [ "/bin/bash", "-c", "--" ]
CMD [ "while true; do sleep 30; done;" ]

{% endif %}
# The runtime stage copies the built venv into a runtime container
FROM ubuntu:resolute AS runtime

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,7 @@ jobs:
permissions:
contents: read
packages: write
{% endraw %}{% if docker_debug %}{% raw %}
debug_container:
needs: [container, test]
uses: ./.github/workflows/_debug_container.yml
with:
publish: ${{ needs.test.result == 'success' }}
permissions:
contents: read
packages: write
{% endraw %}{% endif %}{% endif %}{% if sphinx %}
{% endraw %}{% endif %}{% if sphinx %}
docs:
uses: ./.github/workflows/_docs.yml
permissions:
Expand Down

This file was deleted.

Loading