This project uses Chef's Omnibus toolchain to create full-stack platform-specific 3scale-toolbox packages.
Support for running 3scale-toolbox on the following platforms will be provided on a best-effort basis.
Download packages from latest release section.
- Install the
RPMpackage using therpminstaller utility.
rpm -Uvh `URL_RPM_PACKAGE`Files will be installed in /opt/3scale-toolbox
- Test executing
helpcommand.
3scale help- Download
DEBpackage.
wget `URL_DEB_PACKAGE`- Install the package using the
dpkginstaller utility.
dpkg -i 3scale-toolbox_VERSION.debFiles will be installed in /opt/3scale-toolbox
- Test executing
helpcommand.
3scale help- Install RVM
curl -sSL https://get.rvm.io | bash -s stable- Install Ruby 2.7.1
rvm install 2.7.1- Use Ruby 2.7.1
rvm use 2.7.1- Install
3scale_toolboxgem
gem install 3scale_toolbox- Test executing
helpcommand
3scale helpRequires 64 bit Windows 10.
-
Download and install
MSIpackage. -
By default, the toolbox will be installed in
C:\3scale-toolbox. -
[Optional] Add
C:\3scale-toolbox\embedded\binto thePATHenv var. -
From you command shell, test executing the
helpcommand.
C:\> .\3scale-toolbox\embedded\bin\3scale helpDocker repository
quay.io/redhat/3scale-toolbox
- Test executing
helpcommand
docker run --rm quay.io/redhat/3scale-toolbox 3scale helpAlso working with Openshift.
- Provision the 3scale-toolbox secret with your 3scale credentials
3scale remote add 3scale-instance "https://[email protected]/"
kubectl create secret generic 3scale-toolbox --from-file="$HOME/.3scalerc.yaml"- Deploy Job template to run your 3scale command.
In the example shown below,
3scale remote listcommand will be run.
Write the following yaml template content in a file called toolbox-job.yaml.
apiVersion: batch/v1
kind: Job
metadata:
name: toolbox
spec:
backoffLimit: 4
activeDeadlineSeconds: 300
template:
spec:
restartPolicy: Never
containers:
- name: toolbox-job
image: quay.io/redhat/3scale-toolbox
env:
- name: HOME
value: /var/lib/toolbox
args:
- 3scale
- remote
- list
volumeMounts:
- name: toolbox-config
mountPath: /var/lib/toolbox
volumes:
- name: toolbox-config
secret:
secretName: 3scale-toolboxDeploy the job
kubectl create -f toolbox-job.yamlCheck on the status of the Job
$ kubectl describe jobs/toolbox
Name: toolbox
Namespace: test
Selector: controller-uid=057ec3ff-fa45-11e9-b43e-065562ed0850
Labels: controller-uid=057ec3ff-fa45-11e9-b43e-065562ed0850
job-name=toolbox
Annotations: <none>
Parallelism: 1
Completions: 1
Start Time: Tue, 29 Oct 2019 13:09:56 +0100
Completed At: Tue, 29 Oct 2019 13:10:13 +0100
Duration: 17s
Active Deadline Seconds: 300s
Pods Statuses: 0 Running / 1 Succeeded / 0 Failed
Pod Template:
Labels: controller-uid=057ec3ff-fa45-11e9-b43e-065562ed0850
job-name=toolbox
Containers:
toolbox-job:
Image: quay.io/redhat/3scale-toolbox
Port: <none>
Host Port: <none>
Args:
3scale
remote
list
Environment:
HOME: /var/lib/toolbox
Mounts:
/var/lib/toolbox from toolbox-config (rw)
Volumes:
toolbox-config:
Type: Secret (a volume populated by a Secret)
SecretName: 3scale-toolbox
Optional: false
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 24s job-controller Created pod: toolbox-94xsg- There are known issues running
3scale toolboxwhenRVMis installed and active. You can take the following actions to resolve them:- Disable RVM for the current session, then run the toolbox
rvm use system 3scale help - Disable RVM just for running one command
env -u GEM_PATH 3scale help
- Disable RVM for the current session, then run the toolbox