-
Download and Install Docker: https://www.docker.com/get-started/
-
Install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
-
Create AWS Access Keys: https://dev.to/ukemzyskywalker/how-to-setup-and-configure-an-iam-user-in-aws-217p
This file contains hidden or 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
| # Dependencies | |
| FROM node:20-alpine AS deps | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| # Builder | |
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY --from=deps /app/node_modules ./node_modules |
This file contains hidden or 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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: juno-backup | |
| spec: | |
| schedule: "0/1 * * * *" | |
| concurrencyPolicy: Forbid | |
| jobTemplate: | |
| spec: | |
| template: |
This file contains hidden or 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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: juno-backup | |
| spec: | |
| schedule: "0/1 * * * *" | |
| concurrencyPolicy: Forbid | |
| jobTemplate: | |
| spec: | |
| template: |
This file contains hidden or 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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: juno-backup | |
| spec: | |
| schedule: "0/1 * * * *" | |
| concurrencyPolicy: Forbid | |
| jobTemplate: | |
| spec: | |
| template: |
This file contains hidden or 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
| # Used by `image`, `push` & `deploy` targets, override as required | |
| IMAGE_REG ?= ghcr.io | |
| IMAGE_REPO ?= benc-uk/python-demoapp | |
| IMAGE_TAG ?= latest | |
| # Used by `deploy` target, sets Azure webap defaults, override as required | |
| AZURE_RES_GROUP ?= temp-demoapps | |
| AZURE_REGION ?= uksouth | |
| AZURE_SITE_NAME ?= pythonapp-$(shell git rev-parse --short HEAD) |
This file contains hidden or 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
| // SPDX-License-Identifier: GPT-3 | |
| pragma solidity ^0.8.4; | |
| contract todo{ | |
| struct todoItem { | |
| string itemTitle; | |
| string creator; | |
| bool checked; |
This file contains hidden or 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
| //import ethers from "ethers"; | |
| const { ethers } = require("ethers") | |
| const abi =require('./abi.json') | |
| const providerUrl = 'https://eth-mainnet.g.alchemy.com/v2/r6kmiWHx9rjvq823B9Ka4-7I-sCS3yR6' | |
| const contractAddress='0xdAC17F958D2ee523a2206206994597C13D831ec7' | |
| const getSomething =()=>{ |
This file contains hidden or 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
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity ^0.8.0; | |
| contract blog { | |
| address owner; | |
| struct blogTemplate{ | |
| string postTitle; |
NewerOlder