Skip to content

Commit cf63245

Browse files
LaurentRDCalexbiehl
authored andcommitted
Updated since documentation tag in preparation for 0.5.1.0
1 parent 0467496 commit cf63245

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
* Add `fromExistingNetwork` to allow connecting containers to existing, unmanaged networks (@alexbiehl, https://github.com/testcontainers/testcontainers-hs/pull/41)
88

9+
* Add `setMemory` to limit the memory of a Docker container;
10+
11+
* Add `setCpus` to limit the CPUs limit of a docker container;
12+
13+
* Add `fromImageId` to get an `Image` from an image id;
14+
915
## 0.5.0.0 -- 2023-02-20
1016

1117
* BREAKING: Refined lifecycle management. testcontainers is now using testcontainers/ryuk resource reaper to cleanup containers, networks and volumes. Release keys for containers are deprecated. (@alexbiehl, https://github.com/testcontainers/testcontainers-hs/pull/33)

src/TestContainers/Docker.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@ setCmd newCmd req =
373373
-- | Set the memory limit of a Docker container. This is equivalent to
374374
-- invoking @docker run@ with the @--memory@ parameter.
375375
--
376-
-- @since x.x.x.x
376+
-- @since 0.5.1.0
377377
setMemory :: Text -> ContainerRequest -> ContainerRequest
378378
setMemory newMemory req =
379379
req {memory = Just newMemory}
380380

381381
-- | Set the cpus limit of a Docker container. This is equivalent to
382382
-- invoking @docker run@ with the @--cpus@ parameter.
383383
--
384-
-- @since x.x.x.x
384+
-- @since 0.5.1.0
385385
setCpus :: Text -> ContainerRequest -> ContainerRequest
386386
setCpus newCpus req =
387387
req {cpus = Just newCpus}
@@ -762,7 +762,7 @@ fromTag tag = defaultToImage $ do
762762
-- | Get an `Image` from an image id. This doesn't run @docker pull@ or any other Docker command
763763
-- on construction.
764764
--
765-
-- @since x.x.x.x
765+
-- @since 0.5.1.0
766766
fromImageId :: Text -> ToImage
767767
fromImageId imageId =
768768
defaultToImage $

src/TestContainers/Docker/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class WithoutReaper request where
4848
-- | Do not register the docker resource (container, register, etc.) with the resource reaper.
4949
-- Careful, doing this will make your container leak on shutdown if not explicitly stopped.
5050
--
51-
-- @since x.x.x
51+
-- @since 0.5.1.0
5252
withoutReaper :: request -> request
5353

5454
-- | Identifies a network within the Docker runtime. Assigned by @docker network create@

0 commit comments

Comments
 (0)