This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H4sIABWjK2QAA+y8C3RTZdY+Hi7FQKgNF5sIalIUiNpmh4IliGNjEYwDknDTjL2cNFBItW1CgBhATKi0BoqcIIpB0KY4OvGadMA2nRaTAhnDKDR4PVAgKVSN2poADhOH0fPb76kz44X5vlnrt+b3X9/6f3GRNOe8573sZ+9nP/s9J8opOe8//VIoFNNvu03KfRYMfCrypw18ktfUqdOkU6ZNm5I/PX/KNDyhmJKPDXhSxX98Zvhas2p1uQWnUl6zzFLxyL9uh82WL/8v+hlYivQfn/9TXhnZV/EG83j3lS+VahZJddIfXuQYbzj+y8d/r+I/8v3Uv9flXYsXL/zhT3LF0/hP/bMmg/55PGupqVpebjZXVciry5dWcafhuVMz+lz3MIEn71j5yq437/i/XeT/vv7VSw7/+TH+u/gn8fLT+J9SMHU6T3rbf35q/7+PfznIqaWmmuWVK+QPrTLV/EfGQHsUTJv2r/HPLyD4T1XgvymK6dMR/2n5U6b8L///P3n9O/z/GG+A//3/Xpc/4n9yhQf/CX/WZNA/j4/7J/9Xla9avWZVxbJl5asrbtQuIg0HP3LrMvJ5zSW4+f9qnf/7uuJLDv/p6P9v479g6pRpP4///9V//49e60eQaJ9Qbq6ccLt04At3oHIZfq9ZU1WV+89jj5gsD1dY8v5xijuzYaDBBOPq1eafdlFRU26oqiCNl5dXrar4UUdG06rVeHgCZny5Av+bMuFHJ80mCzmp+NGh8qVLK1atyltterii5pfTslSsWm2pXLqaG2q1ZU3FT+ZVvma1aVW5teKHcz8cNZQvfXiFxbSm5mfTm7DUVGWyrPpp49WVq6t+dr0F3cVUbfuZzWoqyczzpuT+9FheudWW//MT1aZlpE9ufj9e/pQVhjxz+YqKVVewm2VZ9SrLTyYygIvlioeXli81VlArTVfqqWZNdfkvr1i11FK+eqnRXL6MMlsqllfg39QP85zyE6MuNa/5V1j/rEvjmhUV/1jPvzyX9xBnuV/4ySN5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:18-alpine | |
WORKDIR /usr/src/app | |
COPY app.js . | |
USER 1000 | |
CMD [ "node", "app.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http'); | |
const fs = require('fs') | |
const hostname = '0.0.0.0'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.statusCode = 200; | |
res.setHeader('Content-Type', 'text/plain'); | |
fs.readFile("./mydata.json", "utf8", (err, jsonString) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Harbor on Ubuntu 20.04 | |
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server | |
PS3='Would you like to install Harbor based on IP or FQDN? ' | |
select option in IP FQDN | |
do | |
case $option in | |
IP) |