Commit graph

39 commits

Author SHA1 Message Date
Tim Zöller
e57261ce12 Added allow-insecure flag (#58) 2022-05-25 09:08:32 +02:00
Tim Zöller
c42886ba56 Added :fn log strategy (#41) 2022-03-26 11:54:28 +01:00
Tim Zöller
a53cf9e271 Documentation for 0.6.0 2022-03-25 22:59:14 +01:00
Tim Zöller
791708bf51 Minor changes, release preparations 2022-03-21 19:24:33 +01:00
Tim Zöller
28b0183339 Applied autoformatter 2022-03-18 14:05:20 +01:00
Tim Zöller
71af11f503 Extended config for wait strategies (#42) 2022-03-18 14:03:42 +01:00
Andrea Richiardi
12c4b6c1e9
[Fix #50] Add type hints for ResourceReaper (#51) 2021-03-09 09:26:47 +01:00
Tim Zöller
b4bd44b944 Fixed formatting issue 2020-12-16 09:59:36 +01:00
Tim Zöller
b4abae5c33 #43: Introduced new function perform-cleanup 2020-12-16 09:56:09 +01:00
Tim Zöller
57573b483e Fixed Typo 2020-12-15 22:10:27 +01:00
Tim Zöller
c06dc04b8b Merge branch 'master' of https://github.com/javahippie/clj-test-containers into master 2020-12-15 21:40:50 +01:00
Tim Zöller
461add59f7 #47 - Upgraded Testcontainers version 2020-12-15 21:40:47 +01:00
Rob Hanlon
43d573e6f5
Use .copyFileToContainer when the container is already started (#44) 2020-11-26 12:19:17 +01:00
Tim Zöller
f40dcec5f0 Enhanced logging mechanism, added a test for it 2020-10-23 22:42:11 +02:00
Rob Hanlon
dac2b1ba4b
Add type hints to silence reflection warnings (#38)
* Run lein check on CI

* Add type hints as appropriate; readability cleanups
2020-10-23 21:07:43 +02:00
Tim Zöller
167fa385a2 Fix formatting 2020-10-08 11:42:28 +02:00
David Harrigan
ec26e4c078
Add support for accessing container logs. (#34)
* Add support for accessing container logs.

closes #27

-=david=-

* Don't add logs to configuration if not capturing the log

* Further refinements
2020-10-05 10:21:16 +02:00
Tim Zöller
9f36f0db78
Add more options to the HTTP wait strategy (#33)
Issue #25

Co-authored-by: Tim Zöller <tim.zoeller@ilume.de>
2020-09-26 21:32:14 +02:00
Tim Zöller
bed19526b3 #25 - Fixed formatting 2020-09-24 19:26:02 +02:00
David Harrigan
ea854767ae
Add support for a container wait strategy. (#31)
For review.

-=david=-
2020-09-24 19:23:12 +02:00
Rob Hanlon
76359eec37
Rename init-network, remove .getId call (#30)
* Rename init-network, remove .getId call

- Should be called `create-network` to match the existing `create`
  function
- Network#getId oddly has a side effect, which made generative testing
  impossible. Removing this defers network creation until `start!` is called
- Mark init-network as deprecated

* just use def instead of defn

* Fix indentation in README
2020-08-18 14:44:04 +02:00
Rob Hanlon
c0c08b2e26
Configure clojure.spec, add a few specs (#23)
Creates specs for init, create, and init-network
2020-08-10 08:15:00 +02:00
Rob Hanlon
36f3820f4f
cljstyle redux, with pre-commit hook (#24)
* cljstyle redux, with pre-commit

* Use fork of lein-githooks with fixes for shell characters

* Remove stale doc
2020-08-09 21:38:20 +02:00
Rob Hanlon
cc77c4233d
Switch from bat-test to kaocha (#22) 2020-08-07 20:22:45 +02:00
Tim Zöller
de4a48a07b #2 - Add networking support 2020-08-05 15:37:35 +02:00
Tim Zöller
ce0460a35a #18 - Unified handling of container creation 2020-08-05 09:12:23 +02:00
Rob Hanlon
8794b4a991
Allow for provision of a Testcontainer instance (#16)
* Allow for provision of a Testcontainer instance

Testcontainers provides many different container implementations that
can be very useful. This simple change allows callers to provide their
own, premade container instance so consumers can flexibly choose their
container type. If no container instance is supplied, then
clj-test-containers falls back to its original behavior.

* Extract  function

* Cleanup, ensure Clojure types instead of Java types

Co-authored-by: Tim Zöller <mail@tim-zoeller.de>
2020-08-05 07:25:59 +02:00
Burin Choomnuan
c30d02aaaf
Add create-from-docker-file (#14)
* Add create-from-docker-file

* Update code base on review/feedback

Fix the following

- Fix the import style in one line
- Use constructure once when creating the docker-image
- Use some? instead of if
- Remove :env-vars from the test
- Move resources to test section
2020-08-05 07:13:31 +02:00
Burin Choomnuan
a3fda15a49
Use of java :import to keep the code clean (#12)
* Fix the method name

* Use :import for Java classes

To make the code more concise and less verbose

- Tidy up the whitespaces just a bit

* Add lein-cljfmt plugin

* Revert "Add lein-cljfmt plugin"

This reverts commit bff2e04625203e95b76b734e73ad58064f83944e.
2020-07-16 22:44:26 +02:00
Tim Zöller
a5a78008ba #9 - Use {:keys [...]} for map destructuring 2020-06-13 14:49:07 +02:00
Tim Zöller
647d4fe441 #5 - Refactoring and documentation 2020-06-06 17:30:00 +02:00
Tim Zöller
c8ba10a9dc #5 - Set up dependencies for Clojars Deployment 2020-06-06 15:18:31 +02:00
Tim Zöller
6dbebf15bd #6 - Enabled command execution in the container
Also used it to enhance integration tests and make them more precise
2020-06-06 14:43:11 +02:00
Tim Zöller
dee0c8a572 #3 - Finalized volume handling 2020-06-06 13:57:31 +02:00
Tim Zöller
ec2fdf42eb #3 - Filesytem mappings into the container 2020-06-04 22:52:05 +02:00
Tim Zöller
9991a153dd #1 - Streamlined API some more 2020-06-04 13:04:30 +02:00
Tim Zöller
a6d6c10fde #1 - Added simple configuration for generic container initialisation 2020-06-04 12:35:16 +02:00
Tim Zöller
99732b5765 Initialized Dependencies and readme 2020-06-04 10:58:10 +02:00
Tim Zöller
92b2e27703 Initial Commit containing the App Template 2020-06-04 10:44:03 +02:00