Skip to content

Commit

Permalink
Update docker app image
Browse files Browse the repository at this point in the history
- Use one maintained by the diego team

[#171704921]](https://www.pivotaltracker.com/story/show/171704921)

Authored-by: Joseph Palermo <[email protected]>
  • Loading branch information
jpalermo committed May 27, 2020
1 parent 3c25c63 commit d1d7f50
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ To run tests that exercise the use of credentials to access a private docker reg
* `private_docker_registry_username`
* `private_docker_registry_password`
These tests assume that the specified private docker image is a private version of the cloudfoundry/diego-docker-app-custom:latest. To upload a private version to your DockerHub account, first create a private repository on DockerHub and log in to docker on the command line. Then run the following commands:
These tests assume that the specified private docker image is a private version of the cloudfoundry/diego-docker-app:latest. To upload a private version to your DockerHub account, first create a private repository on DockerHub and log in to docker on the command line. Then run the following commands:
```bash
docker pull cloudfoundry/diego-docker-app-custom:latest
docker tag cloudfoundry/diego-docker-app-custom:latest <your-private-repo>:<some-tag>
docker pull cloudfoundry/diego-docker-app:latest
docker tag cloudfoundry/diego-docker-app:latest <your-private-repo>:<some-tag>
docker push <your-private-repo>:<some-tag>
```
Expand Down
2 changes: 1 addition & 1 deletion docker/credhub_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var _ = DockerDescribe("Docker App Lifecycle CredHub Integration", func() {
"-m", DEFAULT_MEMORY_LIMIT,
"-d", Config.GetAppsDomain(),
"-i", "1",
"-c", fmt.Sprintf("/myapp/dockerapp -name=%s", appName)),
"-c", fmt.Sprintf("/myapp/bin/dockerapp -name=%s", appName)),
).Should(Exit(0))

workflowhelpers.AsUser(TestSetup.AdminUserContext(), Config.DefaultTimeoutDuration(), func() {
Expand Down
4 changes: 2 additions & 2 deletions docker/docker_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var _ = DockerDescribe("Docker Application Lifecycle", func() {
"-m", DEFAULT_MEMORY_LIMIT,
"-d", Config.GetAppsDomain(),
"-i", "1",
"-c", fmt.Sprintf("/myapp/dockerapp -name=%s", appName)),
"-c", fmt.Sprintf("/myapp/bin/dockerapp -name=%s", appName)),
).Should(Exit(0))
})

Expand Down Expand Up @@ -98,7 +98,7 @@ var _ = DockerDescribe("Docker Application Lifecycle", func() {
Expect(env_vars).NotTo(HaveKey("TMPDIR"))

// docker image values should remain
Expect(env_vars).To(HaveKeyWithValue("HOME", "/home/dockeruser"))
Expect(env_vars).To(HaveKeyWithValue("HOME", "/home/some_docker_user"))
Expect(env_vars).To(HaveKeyWithValue("SOME_VAR", "some_docker_value"))
Expect(env_vars).To(HaveKeyWithValue("BAD_QUOTE", "'"))
Expect(env_vars).To(HaveKeyWithValue("BAD_SHELL", "$1"))
Expand Down
2 changes: 1 addition & 1 deletion helpers/config/config_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func getDefaults() config {
defaults.PrivateDockerRegistryImage = ptrToString("")
defaults.PrivateDockerRegistryUsername = ptrToString("")
defaults.PrivateDockerRegistryPassword = ptrToString("")
defaults.PublicDockerAppImage = ptrToString("cloudfoundry/diego-docker-app-custom:latest")
defaults.PublicDockerAppImage = ptrToString("cloudfoundry/diego-docker-app:latest")

defaults.UnallocatedIPForSecurityGroup = ptrToString("10.0.244.255")
defaults.RequireProxiedAppTraffic = ptrToBool(false)
Expand Down
2 changes: 1 addition & 1 deletion helpers/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ var _ = Describe("Config", func() {
Expect(config.DetectTimeoutDuration()).To(Equal(10 * time.Minute))
Expect(config.SleepTimeoutDuration()).To(Equal(60 * time.Second))

Expect(config.GetPublicDockerAppImage()).To(Equal("cloudfoundry/diego-docker-app-custom:latest"))
Expect(config.GetPublicDockerAppImage()).To(Equal("cloudfoundry/diego-docker-app:latest"))
Expect(config.GetUnallocatedIPForSecurityGroup()).To(Equal("10.0.244.255"))

Expect(config.GetCredHubBrokerClientCredential()).To(Equal("credhub_admin_client"))
Expand Down

0 comments on commit d1d7f50

Please sign in to comment.