You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Requirements

Due to variations in how jq, base64 and other tools are compiled (under o.s. different than linux), an option is to execute the scripts under docker.

Create docker image

First create the docker file for the image (with all the dependencies), we could use the following dockerfile

dockerfile
FROM debian

# Install required system packages
RUN apt-get update
RUN apt-get -y install  gnupg vim ssh
RUN apt-get -y install git openssh-client less iproute2 procps apt-transport-https coreutils curl gnupg-agent software-properties-common lsb-release jq xxd 

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get -y install nodejs

The image can then be created using the following command:

 docker build ./ -t <image_name>




# execute docker as:

docker run -it --rm -v $(pwd):/src <image_name> sh /src/scripts/jwt-ipo-das.sh client_ID /src/config/client_pem_file.pem
  • No labels