We will be using Docker to run the applications. Let's start!
- Node Exporter will help in providing the OS stats to the prometheus.
- Access the doc here: https://github.com/prometheus/node_exporter
- Run the following docker command:
# stage 1 building the code, dev dependencies will be required (convert TS -> JS) | |
FROM node as builder | |
WORKDIR /usr/app | |
COPY package*.json ./ | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
# stage 2, now as build is created, copy it from stage 1 and use it with prod dependencies | |
FROM node |
Users, groups, and roles | |
user groups and roles are synonyms. | |
Create user = create role+ login permission | |
To create a PostgreSQL user | |
postgres=# create user appuser1 with password 'password'; | |
or | |
postgres=# create role appuser_role2 with login password 'password'; | |
Note :All new users and roles inherit permissions from the public role. |
We will be using Docker to run the applications. Let's start!
def display_board(board): | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") | |
print("\n") |