Questions tagged [spotify-docker-client]

36 questions
1
vote
2 answers

How to disable log4j debug-logging for http-api of com.spotify.docker-client

Using log4j 1.2.17 and com.spotify.docker-client 6.1.1 in Java8. If i set log4j root log level in DEBUG, then http-api of docker client write in log many messages like 09:42:50,624 DEBUG jersey-client-async-executor-0 headers:onResponseReceived:113…
Anton K.
  • 31
  • 6
1
vote
0 answers

How can i mount volume to the container?

I try to mount volumes to the container when configuring it: private def buildApiCheckerContainerConfig(cfg: ApiCheckerConfig): ContainerConfig = { val specVol: Volume = client.createVolume( Volume.builder() .name("openapi.yaml") …
oskin1
  • 13
  • 4
1
vote
1 answer

How to disable http.wire when using spotify docker client?

I am trying to use Spotify DockerClient in my project. The project is NOT a Maven project so I am using the docker-client-8.11.7-shaded.jar to get around all the dependencies. It is working fine except for the apache.http.wire DEBUG log messages. …
Oeg Bizz
  • 104
  • 6
1
vote
0 answers

Exposed Spotify/Docker port is gone after Minio is Injected

In the implementation of a Spotify docker-client library for a container, we set the ports like this: .withPorts((5432, Some(4444))) The container is created with the right port bindings and everything works fine. The problem arises when the…
Kratos
  • 1,064
  • 4
  • 20
  • 39
0
votes
0 answers

Play full spotify track inside my own website using spotify web api for free or not

Currently, I've registered a spotify account. I want to use my own player to play Spotify track, with controls: pause, seek, play. Spotify provides Web Playback SDK but it is restricted for premium account only, if use embeded widget then it only…
0
votes
0 answers

Spotify maven deploy on gitlab

I've implemented in my pom.xml dockerfile-maven-plugin as follows:
lrkwz
  • 6,105
  • 3
  • 36
  • 59
0
votes
3 answers

Java 8 : Order a Collection by stream representation date in ascending way using collections streams

I'm working with DockerClient and I have a collection from images, I need to delete all of them, but not the latest one, so I wanted to sort the collection in ascending way, I have a created field which is a string with the number representation of…
rasilvap
  • 1,771
  • 3
  • 31
  • 70
0
votes
2 answers

How to remove the last element from a Stream Collection (DockerClient)

Hi I have a stream Collection and I sorted it by the date creation, I need to remove all the elements from this Collections, but less the final one: This is my code: List response =…
rasilvap
  • 1,771
  • 3
  • 31
  • 70
0
votes
0 answers

Unable to start docker container using Spotify docker client

I am writing integration test cases to send and receive messages from Amazon SQS. For this, I am running docker container from image s12v/elasticmq:0.13.2. For starting the container, I am using Spotify docker client. Dependencies :- "com.whisk"…
0
votes
0 answers

How can I configure different cloud providers on dockerfile-maven plugin

How can I configure different cloud providers (for GCP, AWS, Azure) on https://github.com/spotify/dockerfile-maven maven plugin, so that it seamlessly enables deployment on all cloud providers. We want maven deploy command to deploy to all cloud…
Rpj
  • 5,348
  • 16
  • 62
  • 122
0
votes
0 answers

com.spotify.docker.client.shaded.org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:8888 [/127.0.0.1] failed: Connection refused

I'm using docker Version 2.0.0.0-mac81 (29211) on MAC OS 10.14.6. I'm not able to build the image for my project and get Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.10:build (build-ukgr-payment-app) on project ca-payments: Could…
0
votes
0 answers

Spotify Docker Build Host Network

Am using spotify docker client to build docker images and at the time of building images, I want to specify network as host (--network=host is the command line equivalent) because if am not setting network type to host am having troubling…
Rajiv
  • 392
  • 6
  • 22
0
votes
0 answers

While containerizing web app , it gets stuck at copying war file

[INFO] --- docker-maven-plugin:1.0.0:build (default) @ bookstore --- 18:35:34.921 [main] DEBUG com.spotify.docker.client.DockerCertificates - /root/.docker/ca.pem, /root/.docker/key.pem or /root/.docker/cert.pem does not exist, not using…
Arjun Sharma
  • 101
  • 2
  • 2
  • 10
0
votes
1 answer

Spotify docker client: How to achieve --network=host functionality?

To use host network in a container one can execute docker run --network=host image. How can I achieve it using this API?
Okumo
  • 169
  • 1
  • 12
0
votes
1 answer

Spotify docker client: How to get stdout and stderr of started container?

I know I can create container with infinity loop: val containerConfig = ContainerConfig.builder() .image(imageName) .cmd("sh", "-c", "while :; do sleep 1; done") .build() val container =…
Okumo
  • 169
  • 1
  • 12