Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
feat: Switch to Portainer CE (#65)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This change is treated by Portainer team as breaking change - switching to a different base image
  • Loading branch information
lholota authored Aug 10, 2021
1 parent 54f22ce commit f167624
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM portainer/portainer:1.24.2 as portainer
FROM portainer/portainer-ce:2.6.2-alpine as portainer

FROM homecentr/base:3.1.1-alpine

Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ services:
command: ping 127.0.0.1
networks:
deps:

portainer:
build: .
image: homecentr/portainer
restart: unless-stopped
networks:
deps:
environment:
PORTAINER_ARGS: "--no-auth"
PORTAINER_ARGS: ""
# WAIT_FOR_NS_RECORD: "dependency"
# WAIT_FOR_NS_RECORD_TIMEOUT: 30
# healthcheck:
Expand All @@ -22,5 +23,5 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock

# networks:
# deps:
networks:
deps:
1 change: 1 addition & 0 deletions tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {

test {
systemProperty 'docker_image_tag', System.getProperty('docker_image_tag')

afterTest { desc, result ->
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
Expand Down
5 changes: 1 addition & 4 deletions tests/src/test/java/PortainerContainerShould.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ public class PortainerContainerShould {

@BeforeClass
public static void beforeClass() {
HashMap<String, String> envVars = new HashMap();
envVars.put("PORTAINER_ARGS", "--no-auth");

Controller.start(envVars, true);
Controller.start(new HashMap(), true);
}

@AfterClass
Expand Down

0 comments on commit f167624

Please sign in to comment.