Skip to content

Commit 0dfe27f

Browse files
c-soloviktortnkmckinley-olsen-ocvxx1
authored
Branch 0.10 (#149)
* project cleanup. first successful test * handing non-existing images * mongo container test * multi-container test * reword ready checkers. add mysql * replace Future.unit to keep compatibility with 2.11 * compatibility with 2.11 * fix timelimited check * extract scalatest into separate module. rework packaging * simpler method to access mapped port * allow defining containers in separate classes * improve docker ready checker And * update docker client depdenency. make password optional in jdbc * update deps * update docker-client to 8.10.0 * v0.10.0-beta4 * WIP * Remove 'SNAPSHOT' from version string * docker-client v8.11.5 * updated sbt to 1.1.5 and plugins * update es spec example * enable access to hostbuilder and configbuilder * fmt. attempting to fix travis build * update travis scala versions * 0.10.0-beta6 * 0.10.0-beta7 * build for scala 2.13 * v0.10.0-beta8 * sbt 1.3.13 * scalafmt 2.6.4 * update scala version * update docker-client and scalatest libs * fix scalatest deprecations * v0.10.0-beta9 * Release 0.10.0-RC * Temporary remove supports scala 3 Co-authored-by: Viktor Taranenko <[email protected]> Co-authored-by: McKinley Olsen <[email protected]> Co-authored-by: Vova <[email protected]>
1 parent 2302b0d commit 0dfe27f

File tree

76 files changed

+1058
-2431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1058
-2431
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ target/
22
target-shaded/
33
project/sbt-launch-*.jar
44
.idea/
5+
.DS_Store
56
.bsp/

.jvmopts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
-Dfile.encoding=UTF8
2-
-Xms1G
3-
-Xmx4G
4-
-XX:ReservedCodeCacheSize=250M
5-
-XX:+TieredCompilation
6-
-XX:-UseGCOverheadLimit
7-
# effectively adds GC to Perm space
8-
-XX:+CMSClassUnloadingEnabled
9-
# must be enabled for CMSClassUnloadingEnabled to work
10-
-XX:+UseConcMarkSweepGC
1+
-Xms512M
2+
-Xmx4096M
3+
-Xss2M
4+
-XX:MaxMetaspaceSize=1024M

.scalafmt.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
version = "2.6.4"
12
style = default
23
maxColumn = 100

build.sbt

Lines changed: 30 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
lazy val commonSettings = Seq(
22
organization := "com.whisk",
3-
version := "0.9.9",
3+
version := "0.10.0-RC",
44
scalaVersion := "2.13.6",
5-
crossScalaVersions := Seq("2.13.6", "2.12.15", "2.11.12", "3.0.2"),
5+
crossScalaVersions := Seq("2.13.6", "2.12.15", "2.11.12"),
66
scalacOptions ++= Seq("-feature", "-deprecation"),
77
Test / fork := true,
88
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
@@ -36,99 +36,60 @@ lazy val root =
3636
.in(file("."))
3737
.settings(commonSettings: _*)
3838
.settings(publish := {}, publishLocal := {}, packagedArtifacts := Map.empty)
39-
.aggregate(core,
40-
testkitSpotifyImpl,
41-
testkitSpotifyShadedImpl,
42-
testkitDockerJavaImpl,
43-
config,
44-
scalatest,
45-
specs2,
46-
samples)
39+
.aggregate(core, scalatest, samples, coreShaded)
4740

4841
lazy val core =
4942
project
50-
.settings(commonSettings: _*)
51-
.settings(name := "docker-testkit-core",
52-
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.22")
53-
54-
lazy val testkitSpotifyImpl =
55-
project
56-
.in(file("impl/spotify"))
57-
.settings(commonSettings: _*)
58-
.settings(name := "docker-testkit-impl-spotify",
59-
libraryDependencies ++=
60-
Seq("com.spotify" % "docker-client" % "8.11.5",
61-
"com.google.code.findbugs" % "jsr305" % "3.0.1"))
62-
.dependsOn(core)
63-
64-
lazy val testkitSpotifyShadedImpl =
65-
project
66-
.in(file("impl/spotify"))
6743
.settings(commonSettings: _*)
6844
.settings(
69-
name := "docker-testkit-impl-spotify-shaded",
70-
libraryDependencies ++=
71-
Seq("com.spotify" % "docker-client" % "8.11.5" classifier "shaded",
72-
"com.google.code.findbugs" % "jsr305" % "3.0.1"),
73-
target := baseDirectory.value / "target-shaded"
45+
name := "docker-testkit-core",
46+
libraryDependencies ++= Seq(
47+
"org.slf4j" % "slf4j-api" % "1.7.25",
48+
"com.spotify" % "docker-client" % "8.16.0",
49+
"com.google.code.findbugs" % "jsr305" % "3.0.1"
50+
)
7451
)
75-
.dependsOn(core)
7652

77-
lazy val testkitDockerJavaImpl =
53+
lazy val scalatest =
7854
project
79-
.in(file("impl/docker-java"))
8055
.settings(commonSettings: _*)
8156
.settings(
82-
name := "docker-testkit-impl-docker-java",
83-
libraryDependencies ++=
84-
Seq("com.github.docker-java" % "docker-java" % "3.2.3",
85-
"com.google.code.findbugs" % "jsr305" % "3.0.1")
57+
name := "docker-testkit-scalatest",
58+
libraryDependencies ++= Seq(
59+
"org.scalatest" %% "scalatest" % "3.1.2",
60+
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
61+
)
8662
)
8763
.dependsOn(core)
8864

8965
lazy val samples =
9066
project
9167
.settings(commonSettings: _*)
9268
.settings(name := "docker-testkit-samples")
93-
.dependsOn(core)
69+
.dependsOn(core, scalatest)
9470

95-
lazy val scalatest =
71+
lazy val tests =
9672
project
9773
.settings(commonSettings: _*)
9874
.settings(
99-
name := "docker-testkit-scalatest",
100-
libraryDependencies ++=
101-
Seq(
102-
"org.scalatest" %% "scalatest" % "3.2.9",
103-
"ch.qos.logback" % "logback-classic" % "1.2.1" % "test",
104-
"org.postgresql" % "postgresql" % "9.4.1210" % "test",
105-
"javax.activation" % "activation" % "1.1.1" % "test"
106-
)
75+
name := "docker-testkit-tests",
76+
libraryDependencies ++= Seq(
77+
"org.postgresql" % "postgresql" % "42.1.4" % "test",
78+
"mysql" % "mysql-connector-java" % "5.1.44" % "test"
79+
)
10780
)
108-
.dependsOn(core, testkitSpotifyShadedImpl % "test", testkitDockerJavaImpl % "test", samples % "test")
81+
.dependsOn(core, scalatest, samples % "test")
10982

110-
lazy val specs2 =
83+
lazy val coreShaded =
11184
project
85+
.in(file("core"))
11286
.settings(commonSettings: _*)
11387
.settings(
114-
name := "docker-testkit-specs2",
88+
name := "docker-testkit-core-shaded",
11589
libraryDependencies ++=
11690
Seq(
117-
"org.specs2" %% "specs2-core" % (if (scalaVersion.value.startsWith("2.1")) "4.5.1"
118-
else "5.0.0-RC-11"),
119-
"ch.qos.logback" % "logback-classic" % "1.2.1" % "test",
120-
"org.postgresql" % "postgresql" % "9.4.1210" % "test",
121-
"javax.activation" % "activation" % "1.1.1" % "test"
122-
)
123-
)
124-
.dependsOn(core, samples % "test", testkitDockerJavaImpl % "test")
125-
126-
lazy val config =
127-
project
128-
.settings(commonSettings: _*)
129-
.settings(
130-
name := "docker-testkit-config",
131-
libraryDependencies ++=
132-
Seq("com.typesafe" % "config" % "1.4.1", "org.scalatest" %% "scalatest" % "3.2.9" % "test")
91+
"com.spotify" % "docker-client" % "8.16.0" classifier "shaded",
92+
"com.google.code.findbugs" % "jsr305" % "3.0.1"
93+
),
94+
target := baseDirectory.value / "target-shaded"
13395
)
134-
.dependsOn(core, testkitDockerJavaImpl)

config/src/main/scala/com/whisk/docker/config/DockerKitConfig.scala

Lines changed: 0 additions & 69 deletions
This file was deleted.

config/src/main/scala/com/whisk/docker/config/DockerTypesafeConfig.scala

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)