This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-16
Channels
- # beginners (48)
- # cider (21)
- # clara (6)
- # cljdoc (3)
- # cljs-dev (11)
- # cljsrn (5)
- # clojure (30)
- # clojure-canada (1)
- # clojure-dusseldorf (2)
- # clojure-italy (10)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-russia (8)
- # clojure-spain (18)
- # clojure-uk (39)
- # clojurescript (84)
- # core-async (17)
- # cursive (22)
- # data-science (27)
- # datomic (27)
- # docker (3)
- # editors (5)
- # emacs (2)
- # figwheel-main (18)
- # fulcro (54)
- # hoplon (3)
- # hyperfiddle (2)
- # immutant (4)
- # jobs (1)
- # jobs-discuss (1)
- # lein-figwheel (7)
- # leiningen (3)
- # lumo (1)
- # onyx (5)
- # re-frame (64)
- # reagent (5)
- # reitit (7)
- # ring-swagger (6)
- # shadow-cljs (118)
- # specter (23)
- # tools-deps (38)
Hi all, trying to get the clojure:tools-deps
docker image to work with gitlab-ci. Does anyone have experience in the matter?
I have never used gitlab-ci, but here is my .yml for running on bitbucket. I imagine it would look quite similar. https://pastebin.com/SE1shJE3
What kind of problems you are seeing?
@U04V4KLKC clj: command not found
. Same with clojure
. I’ve tried purposefully misspelling the docker image to see if there’s a distinct error when the docker image isn’t found, but it appears gitlab-ci just silently fails, and proceeds to run as if from a blank image.
@U7YG6TEKW Yeah, mine looks similar, except gitlab complains that the clojure command isn’t found.
clj should is not available cause readline is not installed. But clojure should be there.
Could you show your config file?
Also I can suggest to use clojure:tools-deps
as your image so it is hard to misspell the name
test:tools-deps:
image: clojure:tools-deps-alpine
script:
- clojure -A:test
Skipping Git submodules setup
$ clojure -A:test
bash: line 52: clojure: command not found
ERROR: Job failed: exit status 1
That is odd… My config file looks a bit different, but it should not be a problem
One of the first things I tried was:
image: clojure:tools-deps
test:
script:
- clojure -A:test
same error 😮
Which version of gitlab-runner you are using?
Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)
I’m using 11.0. Let me downgrade, it can be a problem
Unfortunately, I can not downgrade to 9.5.1 on my mac. Looks like a bunch of dependencies conflicts there. Is it possible for you to upgrade yours and try again?
Hmm. I’m working off of my company’s on-prem installation of gitlab. I’ll ask the dev-ops guy if he can upgrade it. I’ll keep you posted!
Apparently our devops guy needs to backup all our repos over the weekend to upgrade gitlab. I’ll prolly have to get back to you in a week. Good thing lein
still works!
hello, tried again on gitlab-runner 11.1.0. Still says clojure: command not found
. Do you think it’s because we’re using the on-prem community version of gitlab?
Oop, scratch that. we had a faulty config somewhere else. Works now, thanks!
Nice!
Hi. I have a problem w tools-deps. I'm using :local/root quite extensively and I noticed a problem. If I have a project project1
that points to another library with {:local/root "../../libs/abc"}
and then that library uses another library {:local/root "../other-lib"
it doesn't resolve the abc
library classpath correctly.
I think it should be fixed https://dev.clojure.org/jira/browse/TDEPS-74. Probably, it's not that easy to fix.
# clj
Please install rlwrap for command editing or use "clojure" instead.
# echo $?
0
has changing the status code here to some non-zero value been discussed before?I remember such discussion but can’t find an issue. But I’m definitely want to vote for it
no ticket, but feel free to log on and/or provide a patch
@U064X3EF3 can you point me to the source of the clj
clojure
scripts maybe? thanks 🙂
Tickets go to https://dev.clojure.org/jira/browse/TDEPS, patches for that stuff will be on https://github.com/clojure/brew-install (scripts are at src/main/resources)
hello, is there some special magic to make git deps from private repos work? I’m using the [email protected]:...
URL and auth fails
Yesterday was discussion about it - https://clojurians.slack.com/archives/C6QH853H8/p1531520620000066
thanks! I’ll have a look