Skip to content

Commit e0e52fb

Browse files
authored
Merge pull request #85 from travier/rhel9
2 parents 934843e + 59d2dac commit e0e52fb

File tree

4 files changed

+5
-89
lines changed

4 files changed

+5
-89
lines changed

NOTICE

-5
This file was deleted.

README.md

+4-47
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,8 @@
11
# toolbox - bring your tools with you
22

3-
rhcos-toolbox is a small script, designed for RHEL CoreOS, that launches a podman container to let you bring in your favorite debugging or admin tools.
3+
rhcos-toolbox is a small script, designed for RHEL CoreOS, that launches a
4+
podman container to let you bring in your favorite debugging or admin tools.
45

5-
## Usage
6+
This project is deprecated and in maintenance mode.
67

7-
```
8-
$ /usr/bin/toolbox
9-
Spawning container core-fedora-latest on /var/lib/toolbox/core-fedora-latest.
10-
Press ^] three times within 1s to kill container.
11-
[root@localhost ~]# dnf -y install tcpdump
12-
...
13-
[root@localhost ~]# tcpdump -i ens3
14-
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
15-
listening on ens3, link-type EN10MB (Ethernet), capture size 65535 bytes
16-
```
17-
18-
## Advanced Usage
19-
20-
### Use a custom image
21-
22-
toolbox uses a Fedora-based userspace environment by default, but this can be changed to any Docker image. Simply override environment variables in `$HOME/.toolboxrc`:
23-
24-
```
25-
core@core-01 ~ $ cat ~/.toolboxrc
26-
REGISTRY=registry.redhat.io
27-
IMAGE=rhel7/rhel-tools:latest
28-
core@core-01 ~ $ toolbox
29-
Spawning a container 'toolbox-test' with image 'registry.redhat.io/rhel7/rhel-tools:latest'
30-
```
31-
32-
### Automatically enter toolbox on login
33-
34-
Set an `/etc/passwd` entry for one of the users to `/usr/bin/toolbox`:
35-
36-
```sh
37-
useradd bob -m -p '*' -s /usr/bin/toolbox -U -G sudo,docker,rkt
38-
```
39-
40-
Now when SSHing into the system as that user, toolbox will automatically be started:
41-
42-
```
43-
$ ssh bob@hostname.example.com
44-
Container Linux by CoreOS alpha (1284.0.0)
45-
...
46-
Spawning container bob-fedora-latest on /var/lib/toolbox/bob-fedora-latest.
47-
Press ^] three times within 1s to kill container.
48-
[root@localhost ~]# dnf -y install emacs-nox
49-
...
50-
[root@localhost ~]# emacs /media/root/etc/systemd/system/docker.service
51-
```
8+
We recommend that you use https://github.com/containers/toolbox instead.

rhcos-toolbox

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ trap cleanup EXIT
55

66
# Defaults
77
REGISTRY=registry.redhat.io
8-
IMAGE=rhel8/support-tools
8+
IMAGE=rhel9/support-tools
99
AUTHFILE=/var/lib/kubelet/config.json
1010
TOOLBOX_NAME=toolbox-"$(whoami)"
1111
TOOLBOXRC="${HOME}"/.toolboxrc

rhcos-toolbox.spec

-36
This file was deleted.

0 commit comments

Comments
 (0)