Skip to content

Instantly share code, notes, and snippets.

version: v1.1.0
steps:
- build: -t $Registry/mnasonov -f abc.Dockerfile .
env:
- ABC={{.Values.abc}}
- push:
- $Registry/mnasonov:latest
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-20230516-windowsservercore-ltsc2019
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';$ProgressPreference='silentlyContinue';"]
RUN Write-Output 555
RUN --mount=type=secret,id=token,required=true dir C:\ProgramData\Docker\secrets
@maxnasonov
maxnasonov / jsonapi_oas.yml
Created May 3, 2023 17:01 — forked from naesean/jsonapi_oas.yml
OpenAPI 3.0 schemas that comply with the JSON:API 1.0 specification
JSONAPIObject:
description: Includes the current JSON:API version for this specification as well as optional meta information
type: object
required:
- version
properties:
version:
type: string
default: '1.0'
example: '1.0'
@maxnasonov
maxnasonov / _howto
Last active September 10, 2016 19:14
Move docker volumes to the host to fix permission issues on Mac OS
Mac:
edit /etc/exports
edit /etc/nfs.conf
sudo nfsd restart
ln -s /Users/nasonov/Dropbox/projects /projects
ln -s /projects/some-project /Users/user/some-dir/some-volume/_data
B2D:
sudo /etc/init.d/docker stop
sudo mv /mnt/sda1/var/lib/docker/volumes /Users/user/some-dir
@maxnasonov
maxnasonov / Proxy.ps1
Last active December 13, 2016 22:15 — forked from p0w3rsh3ll/Proxy.ps1
# Define a proxy
Configuration Proxy {
$whitelist = '*.google.com;*.example.com;192.168.*;127.*;localhost'
$prefix_hex = [String]::Format("{0:X}", [Convert]::ToUint32($prefix.tochararray()[0]))
$suffix_hex = [String]::Format("{0:X}", [Convert]::ToUint32($suffix.tochararray()[0]))
$proxy_url = "proxy.example.com:3128"
$proxy_url_length = '{0:X}' -f $proxy_url.length
$proxy_url_hex = StringToHex -string $proxy_url
$whitelist_hex = StringToHex -string $whitelist
$whitelist_length = '{0:X}' -f $whitelist.length