Skip to content

Commit c78de45

Browse files
committed
Rename sample-project -> tramp-sample-project
1 parent 8065664 commit c78de45

File tree

7 files changed

+3
-20
lines changed

7 files changed

+3
-20
lines changed

dev/docker-sample-project/project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
:dependencies [[org.clojure/clojure "1.11.1"]
33
[clj-http "3.12.3"]]
44
:source-paths ["src"]
5-
:plugins [[cider/cider-nrepl "0.35.0"]])
5+
:plugins [[cider/cider-nrepl "0.35.1"]])
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# Use an official Clojure runtime as a parent image
21
FROM clojure:temurin-17-lein-bullseye
3-
4-
# Set environment variables to non-interactive (this prevents some prompts)
52
ENV DEBIAN_FRONTEND=noninteractive
6-
7-
# Define environment variable for nREPL port
83
ENV NREPL_PORT=7888
94

105
RUN apt-get update \
@@ -21,7 +16,6 @@ RUN locale-gen en_US.UTF-8
2116
RUN locale-gen en en_US en_US.UTF-8
2217
RUN dpkg-reconfigure locales
2318

24-
# Set root password
2519
RUN echo 'root:cider' | chpasswd
2620

2721
RUN sed -i 's/^#* *PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
@@ -31,31 +25,20 @@ RUN sed -i 's/^#* *ChallengeResponseAuthentication .*/ChallengeResponseAuthentic
3125
# SSH login fix. Otherwise user is kicked off after login
3226
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
3327

34-
# Expose SSH port
3528
EXPOSE 22
3629

3730
CMD ["/usr/sbin/sshd", "-D"]
3831

39-
# Set the working directory in the docker image
4032
WORKDIR /usr/src/app
4133

42-
# Copy the current directory contents into the directory at /usr/src/app in the image
4334
COPY . /usr/src/app
4435

45-
# Install any needed packages specified in project.clj
4636
RUN lein deps
4737

48-
# Forward all relevant env vars for ssh sessions
4938
RUN echo "export JAVA_HOME=${JAVA_HOME}" >> /root/.bashrc
5039
RUN echo "export LEIN_HOME=${LEIN_HOME}" >> /root/.bashrc
5140
RUN echo "export LEIN_JAVA_CMD=${LEIN_JAVA_CMD}" >> /root/.bashrc
5241
RUN echo "export LEIN_JVM_OPTS=${LEIN_JVM_OPTS}" >> /root/.bashrc
5342
RUN echo "export LEIN_ROOT=${LEIN_ROOT}" >> /root/.bashrc
5443
RUN echo "export NREPL_PORT=${NREPL_PORT}" >> /root/.bashrc
5544
RUN echo "export PATH=${PATH}" >> /root/.bashrc
56-
57-
# Make port 7888 available to the world outside this container (nREPL default port)
58-
#EXPOSE 7888
59-
60-
# Run lein repl when the container launches, on port defined by NREPL_PORT
61-
#CMD ["lein", "repl", ":headless", ":host", "0.0.0.0", ":port", "7888"]
File renamed without changes.
File renamed without changes.

dev/sample-project/project.clj renamed to dev/tramp-sample-project/project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
:dependencies [[org.clojure/clojure "1.11.1"]
33
[clj-http "3.12.3"]]
44
:source-paths ["src"]
5-
:plugins [[cider/cider-nrepl "0.35.0"]])
5+
:plugins [[cider/cider-nrepl "0.35.1"]])
File renamed without changes.

doc/modules/ROOT/pages/config/basic_config.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ In this example, the path `/src` will be translated to the correct path of your
239239
Clojure project on the host machine. And `/root/.m2` to the host's `~/.m2` folder.
240240

241241
You need to run `lein deps` (or `clojure -P`, etc) in the host machine in order for
242-
navigation to fully work, at least once, and then, preferrably, every time your Maven dependencies change.
242+
navigation to fully work, at least once, and then, preferably, every time your Maven dependencies change.
243243
This allows the `.m2` part of `cider-path-translations` to be actually useful.
244244

245245
If you can't or won't do that, you can use TRAMP capabilities (which CIDER supports) instead of

0 commit comments

Comments
 (0)