-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
164 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
hadoop-unit-docker/src/main/java/fr/jetoile/hadoopunit/component/DockerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package fr.jetoile.hadoopunit.component; | ||
|
||
public class DockerConfig { | ||
|
||
public static final String DOCKER_IMAGENAME_KEY = "docker.imagename"; | ||
public static final String DOCKER_EXPOSEDPORTS_KEY = "docker.exposedports"; | ||
public static final String DOCKER_ENVS_KEY = "docker.envs"; | ||
public static final String DOCKER_LABELS_KEY = "docker.labels"; | ||
public static final String DOCKER_COMMAND_KEY = "docker.command"; | ||
public static final String DOCKER_FIXED_EXPOSEDPORTS_KEY = "docker.fixed.exposedports"; | ||
public static final String DOCKER_CLASSPATH_RESOURCES_MAPPING_KEY = "docker.classpath.resources.mapping"; | ||
|
||
|
||
private DockerConfig() { | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
hadoop-unit-docker/src/main/java/fr/jetoile/hadoopunit/component/DockerMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package fr.jetoile.hadoopunit.component; | ||
|
||
import fr.jetoile.hadoopunit.ComponentMetadata; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class DockerMetadata extends ComponentMetadata { | ||
@Override | ||
public String getName() { | ||
return "DOCKER"; | ||
} | ||
|
||
@Override | ||
public List<String> getDependencies() { | ||
return Collections.emptyList(); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...nit-docker/src/main/resources/META-INF/services/fr.jetoile.hadoopunit.component.Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fr.jetoile.hadoopunit.component.DockerBootstrap |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
hadoop-unit-docker/src/test/resources/hadoop-unit-default.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#docker.imagename=couchbase:4.5.0 | ||
#docker.exposedports=8091,8092,8093,8094,11207,11210,11211,18091,18092,18093 | ||
docker.imagename=alpine:3.2 | ||
docker.exposedports=80 | ||
docker.envs=MAGIC_NUMBER:42 | ||
docker.labels=MAGIC_NUMBER:42 | ||
docker.command=/bin/sh, -c, while true; do echo \"$MAGIC_NUMBER\" | nc -l -p 80; done | ||
docker.fixed.exposedports=21300:80 | ||
docker.classpath.resources.mapping=hadoop-unit-default.properties:/hadoop-unit-default.properties:READ_ONLY |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
hadoop-unit-standalone/src/main/resources/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '2' | ||
services: | ||
spark-master: | ||
image: bde2020/spark-master:2.4.0-hadoop2.7 | ||
container_name: spark-master | ||
ports: | ||
- "8080:8080" | ||
- "7077:7077" | ||
environment: | ||
- INIT_DAEMON_STEP=setup_spark | ||
spark-worker-1: | ||
image: bde2020/spark-worker:2.4.0-hadoop2.7 | ||
container_name: spark-worker-1 | ||
depends_on: | ||
- spark-master | ||
ports: | ||
- "8081:8081" | ||
environment: | ||
- "SPARK_MASTER=spark://spark-master:7077" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...unit-testcontainer/src/main/java/fr/jetoile/hadoopunit/component/TestContainerConfig.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.