Fork me on GitHub
#datomic
<
2020-12-30
>
onetom10:12:53

Does anyone have an example setup for CircleCI obtaining Datomic dev-local from the new dev-tools package? I'm wondering what's the simplest way to provide the credentials for the cognitect-dev-tools maven repo. Do I need to provide an example settings.xml which I copy to ~/.m2/settings.xml explicitly from the .circleci/config.yml job definition? That much I figured out that the settings.xml can contain references to the environment, so I can work with a static file, like:

<settings xmlns=""
          xmlns:xsi=""
          xsi:schemaLocation="
                      ">
    <servers>
	<server>
	   <id>cognitect-dev-tools</id>
	   <username>${env.COGNITECT_DEV_TOOLS_MVN_USER}</username>
	   <password>${env.COGNITECT_DEV_TOOLS_MVN_PWD}</password>
	</server>
    </servers>
</settings>

onetom10:12:30

according to this old ticket, it's not currently possible to point Clojure CLI tools to a different maven user settings file: https://clojure.atlassian.net/browse/TDEPS-99 which is otherwise possible to do directly with the mvn command line, using the -s / --settings option.

jcf12:01:18

@U086D6TBN this is how I've solved this issue previously. I set secret vars in CircleCI and pull those in via the XML file you've described.

👍 1
jcf12:01:13

If you're using GitHub actions there's a Maven action that will do the settings.xml dance for you based on strings in YAML rather than XML. 🤷

onetom16:01:14

thanks for the reassurance!

🙇 1
kenny20:12:55

Why does qseq appear to not take :timeout?

onetom05:12:11

it might have something to do with its laziness?