Commit graph

29 commits

Author SHA1 Message Date
Lexy2
96a6a8dbee
fix: test spaces for windows (#190)
* fix running tests in directories with spaces
* REGISTRY_STORAGE_DELETE
* Updated Windows testing scripts

Co-authored-by: Zhitenev-Lexy <Zhitenev.Lexy@bcg.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-11 10:00:02 +02:00
Manuel Vogel
c404e0ae51
fix: replace for loops with StateChangeConf (#182)
* fix: create container refresh function
* fix: adapt statefunc delays and timeouts to reflect for loop
* feat: add testaccDockerfile for local development
* chore(ci): bump terraform versions and add 0.15.2
2021-05-11 08:59:40 +02:00
Manuel Vogel
1159e2de73
feat: support darwin arm builds and golang 1.16 (#140)
* chore: bump to golang 1.16

* fix(ci): remove fail fast from non-matrix builds

* chore: rename release workflow from yml to yaml

* fix: use goreleaser for compile tests

* fix(make): use gorelease in compile target

* fix(ci): add gpg import step for compile
2021-03-18 23:21:49 +09:00
Manuel Vogel
ad3e56da2b
feat: migrate to terraform-sdk v2 (#102)
* chore: runs v2 upgrade cmd
* chore: moves all files into the internal provider dir
* feat: migrates main and provider
* fix: migrates tests to provider factories
* fix: replace import state passthrough ctx func
* chore: bump tf-sdk to v2.4.4
* fix: acc test by adding stop grace period
* fix: move to validate diag functions
* test: switch from ctx TODO to Background
* feat: add state upgrade for restart_policy and auth

Co-authored-by: Shunsuke Suzuki <suzuki-shunsuke@users.noreply.github.com>
2021-03-18 08:30:54 +01:00
tanis
8b617bd690
feat: add properties -it (tty and stdin_opn) to docker container
Closes #120
2021-01-18 09:00:26 +01:00
Manuel Vogel
30f2238e0b
feat: add ability to lint/check of links in documentation locally (#98)
* build: adds local check for website links
* build(make): adds website lint and setup target
* docs: fix spellings and hcl blocks
* fix(make): phony cmd for missing targets
* chore: renames website link check workflow
* fix: missing workflow path
* build(make): adds golangci-lint target and tool
* ci: adds website lint workflow
* docs(contributing): adds linter runs
* chore: improves naming of workflow jobs
* ci: moves website lint job
* chore: switches markdown checker imagee to ghcr.io/tcort/markdown-link-check:stable
2020-12-27 19:02:34 +09:00
Suzuki Shunsuke
9f9bbc0773 ci: add gofmt's '-s' option 2020-12-12 19:26:11 +09:00
Manuel Vogel
6a1356c49e
Merge branch 'feature/resource-docker_registry_image' of git://github.com/edgarpoce/terraform-provider-docker into edgarpoce-feature/resource-docker_registry_image 2020-10-07 20:38:10 +02:00
Manuel Vogel
250b58a9f8
feat: adds docker Image build feature (#283) 2020-10-07 20:06:13 +02:00
Manuel Vogel
06a1b8880a
fix: pins docker registry for tests to v2.7.0 2020-08-02 18:09:03 +02:00
edgar poce
6a3c615a30 added docker_registry_image 2020-03-24 16:48:49 -03:00
stephenliberty
5ad4646537
feat: allow use of source file instead of content / content_base64 (#240)
Closes #239 

* Added a 'source' and 'source hash' which will reference a file / file hash to load into the container
* Add to docs
* Adding a test, cleaning up another one
2020-02-03 21:44:46 +01:00
Manuel Vogel
62ddaf9e23
Refactors test setup (#156)
* refactors test setup according to the postgres provider
* updates readme for new test setup
2019-06-01 12:01:42 +02:00
Manuel Vogel
e323be8f55
Fixes for flaky tests (#154)
* adds delay for fetching auth config
* refactor registry auth retrieval. adds retry if not found
* reactivates full build in script and travis
2019-05-31 15:08:32 +02:00
Manuel Vogel
a6fdf4c2a6
Fixes for image pulling and local registry (#143)
Multiple fixes for handling private registries and login credential retrieval on OSX.

- Fixes check for image locally before pulling it: #24
- Fixes image prefix workaround: #120
- Fixes passing of the `--with-registry-auth` flag: #77 
- Fixes docker registry credentials in osxkeychain: #125
2019-05-26 11:42:53 +02:00
Alex Pilon
17a658bdd0
remove turn modules off for gox installation 2019-03-11 18:19:31 -04:00
Radek Simko
82a52bc0d8
tests: Simplify Dockerfile(s) 2019-03-05 08:20:44 +00:00
Manuel Vogel
f710743d71
Support for random external port for containers (#103)
* fixes container port mapping by switching from set to list. Closes #102 
* adapts mapper and flattener
* updates CHANGELOG
2018-10-16 18:49:57 +02:00
André Caron
064d2a96d1 Add support for running tests on Windows (#90)
* Add batch file clones of the unix shell scripts
* Update go-winio
* Document procedure for running tests on Windows
2018-09-28 16:18:48 +02:00
Manuel Vogel
1f563cc913
Migrate/docker-client (#70)
Migrates to the official docker client to connect to the Docker API/Deamon. Closes #32
2018-07-03 17:30:53 +02:00
Manuel Vogel
dc824c1030
Feat/swarm 4 new resources (#40)
Adds docker swarm features to the provider for the Docker Engine 17.09.1 and API Version 1.32. 

The spec is close to the API. By default, the swarm services are fire and forget. A converging config implements the features of the docker cli to ensure a service and all its replicas are up and running. Furthermore, service can have configs, secrets, networks, mounts and be added to a network.
2018-05-16 18:00:04 +02:00
Manuel Vogel
c8c1f9e662
Fixing build and private image 2018-04-10 08:47:28 +02:00
Manuel Vogel
9e643ac13d
added 3rd test image and made build more generic 2018-04-09 20:31:09 +02:00
Manuel Vogel
37e3301e98
updated test script to clean up properly 2018-04-09 20:20:40 +02:00
Manuel Vogel
bbab6d2075
Using absolute paths instead of relative in test scripts 2018-04-09 15:30:15 +02:00
Manuel Vogel
4270949de8
Updated private registry port to 15000 for fix teamcity build. 2018-04-09 15:17:06 +02:00
Manuel Vogel
d7038e7560 Feat/swarm 3 acc test infra (#39)
* Set up test infrastructure with local registry and custom images.

* Updated travis docker version and usage of new test infra.

* Made acc tests constantly output test results.

* Tmp acc test files are ignored.

* Fixed tests with new infra.

* Allowing insecure registries for acc tests. Added fallback for v1 registries.

* Added private image cleanup after tests.

* Refined acc test structure to confirm tf provider standards with make testacc.
2018-02-09 13:11:30 -06:00
Jake Champlin
ae9022e117
Fix Changelog Links Script for docker provider 2017-06-26 09:49:48 -05:00
Jake
d8ce3db14a initial commit 2017-06-05 20:59:08 +00:00