Skip to content

Commit

Permalink
Adds SSH to assistant containers (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
markwaddle authored Oct 8, 2024
1 parent 189a183 commit d0859f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions tools/docker/Dockerfile.assistant
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ FROM ${python_image}

ARG app

# BEGIN: enable ssh in azure web app - comment out if not needed
########
# install sshd and set password for root
RUN apt-get update && apt-get install -y --no-install-recommends \
openssh-server \
&& rm -rf /var/lib/apt/lists/* \
&& echo "root:Docker!" | chpasswd

# azure sshd config
COPY ./tools/docker/azure_website_sshd.conf /etc/ssh/sshd_config
ENV SSHD_PORT=2222
########
# END: enable ssh in azure web app

COPY --from=build /packages/assistants/assistant/.venv /packages/assistants/assistant/.venv
ENV PATH=/packages/assistants/assistant/.venv/bin:$PATH

Expand Down
3 changes: 2 additions & 1 deletion tools/makefiles/docker.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DOCKER_REGISTRY_NAME ?=
ifneq ($(DOCKER_REGISTRY_NAME),)
DOCKER_REGISTRY_HOST ?= $(DOCKER_REGISTRY_NAME).azurecr.io
DOCKER_USERNAME ?= $(DOCKER_REGISTRY_NAME)
endif
DOCKER_IMAGE_TAG ?= $(shell git rev-parse HEAD)
DOCKER_PUSH_LATEST ?= true
DOCKER_PATH ?= .
Expand Down

0 comments on commit d0859f1

Please sign in to comment.