-
Notifications
You must be signed in to change notification settings - Fork 16
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
devcontainer added #163
base: master
Are you sure you want to change the base?
devcontainer added #163
Conversation
# Install any development tools you need, for example, Maven, Git, etc. | ||
RUN apt-get update && \ | ||
apt-get install -y maven git && \ | ||
apt-get clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will want docker as well for running the testcontainers based integration tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I haven't worked with testcontainers before. I think the docker-in-docker would use the host docker through a socket.
Or rather 'podman in podman' for the DLS users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to approve without knowing the following command passes in a devcontainer:
mvn clean install test-compile failsafe:integration-test failsafe:verify --batch-mode --fail-at-end -Djacoco.skip=true -DskipITs=false -DskipITCoverage=true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will test this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which instance would you like to run this?
I could drop it here instead of line 23 in Dockerfile
RUN mvn clean install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so theoretically the docker
executable is now available inside the developer container. still elastic search connection refused. investigating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker: Cannot connect to the Docker daemon at unix:///run/user/1225263/podman/podman.sock. Is the docker daemon running?.
See 'docker run --help'.```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I installed podman but it refuses to run as root
maybe I need to add something about a new user into devcontainer or Dockerfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to pull quay.io/podman/hello:latest...
Getting image source signatures
Copying blob 81df7ff16254 done |
Copying config 5dd467fce5 done |
Writing manifest to image destination
ERRO[0013] Unmounting /var/lib/containers/storage/overlay/6ab302e27a11f20f53d9a2ade9743629b9350af8447449a7acc145ff153eca20/merged: invalid argument
ERRO[0013] Preparing container 4969dcf74b9acdebf49a1f5004e14b630a68b43570231bead1b8df5ed30bda3f: netavark: setns: IO error: Operation not permitted (os error 1)
Error: mounting storage for container 4969dcf74b9acdebf49a1f5004e14b630a68b43570231bead1b8df5ed30bda3f: creating overlay mount to /var/lib/containers/storage/overlay/6ab302e27a11f20f53d9a2ade9743629b9350af8447449a7acc145ff153eca20/merged, mount_data="lowerdir=/var/lib/containers/storage/overlay/l/XUJMKUCC4OWTZV3Q5QEPVLUMDN,upperdir=/var/lib/containers/storage/overlay/6ab302e27a11f20f53d9a2ade9743629b9350af8447449a7acc145ff153eca20/diff,workdir=/var/lib/containers/storage/overlay/6ab302e27a11f20f53d9a2ade9743629b9350af8447449a7acc145ff153eca20/work": using mount program /usr/bin/fuse-overlayfs: unknown argument ignored: lazytime
fuse: device not found, try 'modprobe fuse' first
fuse-overlayfs: cannot mount: No such file or directory
: exit status 1
I tried parametrizing the remoteUser (comment it out), but it's still as root
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even podman pull
does not quite work as expected
podman pull docker.elastic.co/elasticsearch/elasticsearch:8.16.1
Trying to pull docker.elastic.co/elasticsearch/elasticsearch:8.16.1...
Getting image source signatures
Copying blob 4ca545ee6d5d done |
Copying blob e7894aa63b6b done |
Copying blob fc92672f5fb7 done |
Copying blob deb9b088b6a9 done |
Copying blob d06b22f717ef done |
Copying blob 9ab872b2449e done |
Copying blob 533fb8518242 done |
Copying blob 17672f99d9ac done |
Copying blob 7936da0b8295 done |
Copying blob f4101ba1f689 done |
Error: copying system image from manifest list: writing blob: adding layer with blob "sha256:e7894aa63b6b441f711d543f0bd9f3584e66c7aac167b2f7ceac4bab2a89ca48": processing tar file(potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/gshadow: invalid argument): exit status 1
2d5f6d4
to
6b60c7c
Compare
Quality Gate passedIssues Measures |
No description provided.