Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman testcontainer for springboot application #24975

Open
tppalani opened this issue Jan 8, 2025 · 2 comments
Open

podman testcontainer for springboot application #24975

tppalani opened this issue Jan 8, 2025 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. remote Problem is in podman-remote windows issue/bug on Windows

Comments

@tppalani
Copy link

tppalani commented Jan 8, 2025

Issue Description

is that podman will support to run springboot application testcontainer if yes can you please share the steps

Steps to reproduce the issue

Client: Podman Engine
Version: 5.1.1
API Version: 5.1.1
Go Version: go1.22.3
Git Commit: bda6eb0
Built: Wed Jun 5 03:10:05 2024
OS/Arch: windows/amd64

Server: Podman Engine
Version: 5.2.5
API Version: 5.2.5
Go Version: go1.22.7
Built: Fri Oct 25 05:30:00 2024
OS/Arch: linux/amd64

Describe the results you received

Describe the results you received

Describe the results you expected

Describe the results you expected

podman info output

host:
arch: amd64
buildahVersion: 1.37.5
cgroupControllers:

  • cpuset
  • cpu
  • io
  • memory
  • hugetlb
  • pids
  • rdma
  • misc
    cgroupManager: cgroupfs
    cgroupVersion: v2
    conmon:
    package: conmon-2.1.12-2.fc40.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.12, commit: '
    cpuUtilization:
    idlePercent: 99.81
    systemPercent: 0.08
    userPercent: 0.11
    cpus: 12
    databaseBackend: sqlite
    distribution:
    distribution: fedora
    variant: container
    version: "40"
    eventLogger: journald
    freeLocks: 2004
    hostname: abc
    idMappings:
    gidmap: null
    uidmap: null
    kernel: 5.15.167.4-microsoft-standard-WSL2
    linkmode: dynamic
    logDriver: journald
    memFree: 14310756352
    memTotal: 16566628352
    networkBackend: netavark
    networkBackendInfo:
    backend: netavark
    dns:
    package: aardvark-dns-1.12.2-2.fc40.x86_64
    path: /usr/libexec/podman/aardvark-dns
    version: aardvark-dns 1.12.2
    package: netavark-1.12.2-1.fc40.x86_64
    path: /usr/libexec/podman/netavark
    version: netavark 1.12.2
    ociRuntime:
    name: crun
    package: crun-1.17-1.fc40.x86_64
    path: /usr/bin/crun
    version: |-
    crun version 1.17
    commit: 000fa0d4eeed8938301f3bcf8206405315bc1017
    rundir: /run/crun
    spec: 1.0.0
    +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
    os: linux
    pasta:
    executable: /usr/bin/pasta
    package: passt-0^20241030.gee7d0b6-1.fc40.x86_64
    version: |
    pasta 0^20241030.gee7d0b6-1.fc40.x86_64
    Copyright Red Hat
    GNU General Public License, version 2 or later
    https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    remoteSocket:
    exists: true
    path: /run/podman/podman.sock
    rootlessNetworkCmd: pasta
    security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
    serviceIsRemote: true
    slirp4netns:
    executable: ""
    package: ""
    version: ""
    swapFree: 4294967296
    swapTotal: 4294967296
    uptime: 11h 50m 44.00s (Approximately 0.46 days)
    variant: ""
    plugins:
    authorization: null
    log:
  • k8s-file
  • none
  • passthrough
  • journald
    network:
  • bridge
  • macvlan
  • ipvlan
    volume:
  • local
    registries:
    search:
  • docker.io
    store:
    configFile: /usr/share/containers/storage.conf
    containerStore:
    number: 35
    paused: 0
    running: 1
    stopped: 34
    graphDriverName: overlay
    graphOptions:
    overlay.imagestore: /usr/lib/containers/storage
    overlay.mountopt: nodev,metacopy=on
    graphRoot: /var/lib/containers/storage
    graphRootAllocated: 1081101176832
    graphRootUsed: 39952297984
    graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "true"
    imageCopyTmpDir: /var/tmp
    imageStore:
    number: 75
    runRoot: /run/containers/storage
    transientStore: false
    volumePath: /var/lib/containers/storage/volumes
    version:
    APIVersion: 5.2.5
    Built: 1729814400
    BuiltTime: Fri Oct 25 05:30:00 2024
    GitCommit: ""
    GoVersion: go1.22.7
    Os: linux
    OsArch: linux/amd64
    Version: 5.2.5
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

Privileged

Upstream Latest Release

Yes

Additional environment details

windows 11

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@tppalani tppalani added the kind/bug Categorizes issue or PR as related to a bug. label Jan 8, 2025
@github-actions github-actions bot added windows issue/bug on Windows remote Problem is in podman-remote labels Jan 8, 2025
@rhatdan
Copy link
Member

rhatdan commented Jan 8, 2025

Please explain what is going wrong?

@tppalani
Copy link
Author

tppalani commented Jan 8, 2025

Please explain what is going wrong?

Thanks for the response, when i do mvn clean package my test container not running do you need setup something like this ?

export TESTCONTAINERS_RYUK_DISABLED=true

if yes i have run the above command in git bash, then ran mvn clean package command i got into below error

025-01-08T19:27:56.796+05:30  WARN 25928 --- [           main] o.t.containers.ComposeDelegate           : Unable to pre-fetch an image (localstack/localstack:latest) depended upon by Docker Compose build - startup will continue but may fail. Exception message was: Could not find a valid Docker environment. Please see logs and check configuration
2025-01-08T19:27:57.051+05:30  INFO 25928 --- [           main] org.testcontainers.DockerClientFactory   : Testcontainers version: 1.20.4
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.32 s <<< FAILURE! -- in com.local.aws.S3IntegrationTest
[ERROR] com.local.aws.S3IntegrationTest.testListBuckets -- Time elapsed: 3.816 s <<< ERROR!
org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=docker/compose:1.29.2, imagePullPolicy=DefaultPullPolicy(), imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@713e7d9a)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. remote Problem is in podman-remote windows issue/bug on Windows
Projects
None yet
Development

No branches or pull requests

2 participants