These are the following steps that are required to manually enable the mirror,
- Install rpm package
- Install overlaybd
- Enable http auth
- Configure mirror
- Enable tcmu and overlaybd services
// ------------------------------------------------------------ | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. | |
// ------------------------------------------------------------ | |
namespace Inventory.Service | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Fabric; |
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" | |
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key | |
sudo apt-key add - < Release.key | |
sudo apt-get update -qq | |
sudo apt-get -qq -y install podman | |
sudo mkdir -p /etc/containers | |
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf |
/// <summary> | |
/// Provides helpers to validate resource names across the Microsoft Azure Storage Services. | |
/// </summary> | |
public static class NameValidator | |
{ | |
/// <summary> | |
/// Checks if a container name is valid. | |
/// </summary> | |
/// <param name="containerName">A string representing the container name to validate.</param> | |
public static void ValidateContainerName(string containerName) |
$tempPath = [System.IO.Path]::GetTempPath() + [System.Guid]::NewGuid().ToString() | |
# ADK Download - https://www.microsoft.com/en-us/download/confirmation.aspx?id=39982 | |
# You only need to install the deployment tools | |
$oscdimgPath = "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\oscdimg.exe" | |
# Download qemu-img from here: http://www.cloudbase.it/qemu-img-windows/ | |
$qemuImgPath = "E:\backbonev2\lib\bin\qemu-img-win-x64-2_3_0\qemu-img.exe" | |
# Update this to the release of Ubuntu that you want |
## template: jinja | |
#cloud-config | |
merge_how: | |
- name: list | |
settings: [append] | |
- name: dict | |
settings: [no_replace, recurse_list] | |
write_files: | |
# Create nydusd config |
mod util { | |
impl<T> MatchSuffix for T where T: AsRef<str> {} | |
/// Trait for checking if self matches a specific suffix, | |
/// | |
pub trait MatchSuffix | |
where | |
Self: AsRef<str>, | |
{ |
# Builds/Installs mirror from source | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nsenter-actions | |
labels: | |
app: nsenter | |
data: | |
wasm: | |
#!/bin/sh | |
set -e | |
# Script using curl to login to the mirror from the shell | |
host=$1 | |
username=$2 | |
password=$3 |
# Builds/Installs mirror from source | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nsenter-actions | |
labels: | |
app: nsenter | |
data: | |
wasm: | | |
#!/usr/bin/env bash |