We will use minimalistic Linux distribution called Alpine (5MB)
FROM alpine:latest
RUN apk --update add redis
/** Checks if the JWT is present and not expired | |
The token is expected to be found in `token` environment variable | |
*/ | |
function isValidToken() { | |
const token = pm.environment.get("token"); | |
if (!token) { | |
console.log("Token is missing"); | |
return false; | |
} | |
// Payload is retrieved after JSON parsing the base64 decoded `atob()` 2nd part of the JWT `[1]` |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: | |
imageRepository: 'multi-stage-build-caching' | |
containerRegistry: 'ACR-Service-Connection-Name' | |
registryName: '[redacted].azurecr.io' |
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
import axios from 'axios' | |
let mockingEnabled = false | |
const mocks = {} | |
export function addMock(url, data) { | |
mocks[url] = data | |
} |
FROM traefik:camembert | |
ADD traefik.toml . | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 443 |