I am following the contributor guide and trying to add clojure support to http-server.
However, I am stuck by the following errors
js-tools Docker image built.
Compiling language: clojure...
compiling http-server-clojure
- compiling starter template for http-server-clojure
- ignoring template interpolation for .gitattributes
- postprocessing compiled_starters/clojure/README.md
compiled_starters/clojure/README.md 37ms
- ignoring template interpolation for build.clj
- ignoring template interpolation for .gitignore
- ignoring template interpolation for deps.edn
- ignoring template interpolation for src/main.clj
- ignoring template interpolation for .codecrafters/run.sh
- ignoring template interpolation for .codecrafters/compile.sh
- compiling solutions for clojure
- compiling solution diffs for http-server-clojure
Testing languages: clojure
Testing Dockerfile: http-server-clojure-1.12
--------------------------------------------
CodeCrafters was unable to process this Dockerfile. Error: RuntimeError: Unknown from_line: FROM clojure:openjdk-19.
/app/app/lib/buildpack_dockerfile_processor.rb:48:in `build_prelude_lines'
/app/app/lib/buildpack_dockerfile_processor.rb:82:in `process'
/app/app/controllers/services/course_sdk_controller.rb:10:in `process_dockerfile'
/usr/local/bundle/gems/actionpack-8.0.1/lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
/usr/local/bundle/gems/actionpack-8.0.1/lib/abstract_controller/base.rb:226:in `process_action'
/usr/local/bundle/gems/actionpack-8.0.1/lib/action_controller/metal/rendering.rb:193:in `process_action'
/usr/local/bundle/gems/actionpack-8.0.1/lib/abstract_controller/callbacks.rb:261:in `block in process_action'
/usr/local/bundle/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:120:in `block in run_callbacks'
/usr/local/bundle/gems/turbo-rails-2.0.11/lib/turbo-rails.rb:24:in `with_request_id'
/usr/local/bundle/gems/turbo-rails-2.0.11/app/controllers/concerns/turbo/request_id_tracking.rb:10:in `turbo_tracking_request_id'
I am trying to add this Dockerfile
FROM clojure:tools-deps-1.12.0.1501
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="deps.edn"
WORKDIR /app
COPY deps.edn ./
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app
# Install language-specific dependencies
RUN .codecrafters/compile.sh
I believe there are some implicit knowledge I couldn’t find out. Could you please share more insight?
Thank you! I thought of it. I did the test on my m2 macmini, that’s why I couldn’t use -alpine. I was wondering if that was the cause. I will test on wsl2 tonight to see if it can work.