Skip to content

Commit d77ba14

Browse files
committed
1 parent fb04550 commit d77ba14

File tree

5 files changed

+9
-64
lines changed

5 files changed

+9
-64
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: DockerHub
1+
name: Build docker image
22

33
on:
44
push:
@@ -29,18 +29,12 @@ jobs:
2929

3030
- name: Set up Docker buildx
3131
uses: docker/setup-buildx-action@v1
32-
33-
- name: Login to DockerHub
34-
uses: docker/login-action@v1
35-
with:
36-
username: ${{ secrets.DOCKER_USERNAME }}
37-
password: ${{ secrets.DOCKER_TOKEN }}
3832

3933
- name: Login to GitHub Container Registry
4034
uses: docker/login-action@v1
4135
with:
4236
registry: ghcr.io
43-
username: ${{ github.repository_owner }}
37+
username: bitprocessor
4438
password: ${{ secrets.CR_PAT }}
4539

4640
- name: Build and push Docker image
@@ -50,10 +44,7 @@ jobs:
5044
build-args: UTIL_LINUX_VER=${{ steps.get_util_linux.outputs.version }}
5145
platforms: linux/amd64,linux/arm64
5246
tags: |
53-
${{ secrets.DOCKER_USERNAME }}/nsenter:${{ steps.get_util_linux.outputs.version }}
54-
${{ secrets.DOCKER_USERNAME }}/nsenter:latest
55-
ghcr.io/${{ github.repository_owner }}/nsenter:${{ steps.get_util_linux.outputs.version }}
56-
ghcr.io/${{ github.repository_owner }}/nsenter:latest
47+
ghcr.io/bitprocessor/nsenter:latest
5748
push: true
5849

5950
- name: Image digest

.github/workflows/cron.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN make LDFLAGS="--static" nsenter
1717

1818
# Final image
1919
FROM scratch
20-
20+
LABEL org.opencontainers.image.source https://github.com/BitProcessor/nsenter
2121
COPY --from=builder /code/util-linux/nsenter /
2222

2323
ENTRYPOINT ["/nsenter"]

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
![DockerHub](https://github.com/alexei-led/nsenter/workflows/DockerHub/badge.svg) ![Docker Pulls](https://img.shields.io/docker/pulls/alexeiled/nsenter.svg?style=popout) [![](https://images.microbadger.com/badges/image/alexeiled/nsenter.svg)](https://microbadger.com/images/alexeiled/nsenter "Get your own image badge on microbadger.com")
2-
31
# nsenter
42

5-
## Info
6-
7-
`alexeiled/nsenter` Docker image is a `scratch` image that contains only one statically linked `nsenter` file.
8-
93
## Usage
104

115
Read the official `nsenter` [documentation](http://man7.org/linux/man-pages/man1/nsenter.1.html).
126

13-
## Continuously Updated with GitHub Actions
14-
15-
The `nsenter` is automatically updated when a new version of [util-linux](https://github.com/karelzak/util-linux) is released.
16-
17-
## How do I *use* `alexeiled/nsenter`?
7+
## How do I *use* `ghcr.io/bitprocessor/nsenter`?
188

199
Enter the container:
2010

2111
```sh
2212
# enter all namespaces of selected container
23-
docker run -it --rm --privileged --pid=container:<container_name_or_ID> alexeiled/nsenter --all --target 1 -- su -
13+
docker run -it --rm --privileged --pid=container:<container_name_or_ID> ghcr.io/bitprocessor/nsenter --all --target 1 -- su -
2414
```
2515

2616
Enter the Docker host:
2717

2818
```sh
2919
# enter all namespaces of Docker host
30-
docker run -it --rm --privileged --pid=host alexeiled/nsenter --all --target 1 -- su -
20+
docker run -it --rm --privileged --pid=host ghcr.io/bitprocessor/nsenter --all --target 1 -- su -
3121
```
3222

3323
## Enter Kubernetes node

nsenter-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ kubectl run ${podName:?} --restart=Never -it --rm --image overriden --overrides
2424
"containers": [
2525
{
2626
"name": "nsenter",
27-
"image": "alexeiled/nsenter",
27+
"image": "ghcr.io/bitprocessor/nsenter:latest",
2828
"command": [
29-
"/nsenter", "--all", "--target=1", "--", "su", "-"
29+
"/nsenter", "-m", "-u", "-i", "-n", "-p", "-C", "-r", "-w", "--target=1", "--", "su", "-"
3030
],
3131
"stdin": true,
3232
"tty": true,

0 commit comments

Comments
 (0)