connorcarnes / pwshcloudflare Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
mkdocs is deploying to cloudflare pages but it looks terrible, need to look at how to configure mkdocs
Function | ApiOperation | Status |
---|---|---|
placeholder | placeholder | placeholder |
\Public
Get-ResourceOne.ps1
Get-ResourceTwo.ps1
Set-ResourceOne.ps1
Set-ResourceTwo.ps1
\Public
\ResourceOne
Get-ResourceOne.ps1
Set-ResourceOne.ps1
\ResourceTwo
Get-ResourceTwo.ps1
Set-ResourceTwo.ps1
Get-CFAccount accepts a single name or id e.g. Get-CFAccount -Name 'accountName'
. I know we can write the functions to handle multiple inputs e.g. Get-CFAccount -Name 'accountName1', 'accountName2'
but I was getting side tracked wondering how I'd go about it. Specifically I was wondering if query params allow wildcards or multiple inputs
This is the current Dockerfile:
FROM mcr.microsoft.com/devcontainers/base:ubuntu
# https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.4
COPY bootstrap.ps1 bootstrap.ps1
RUN apt-get update \
&& apt-get install -y wget apt-transport-https software-properties-common \
&& wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y powershell \
&& pwsh -File bootstrap.ps1
COPY profile.ps1 /opt/microsoft/powershell/7/profile.ps1
It works fine so far but the below pseudo Dockerfile may be better:
FROM mcr.microsoft.com/devcontainers/base:ubuntu
# https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.4
RUN apt-get update \
&& apt-get install -y wget apt-transport-https software-properties-common \
&& wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update
RUN pwsh -File <path_to_.devcontainer/bootstrap.ps1>
COPY profile.ps1 /opt/microsoft/powershell/7/profile.ps1
Desired outcome is that first RUN statement gets cached. It takes the majority of the build time but changes the least. Bootstrap.ps1 in second RUN statement changes frequently. Need to test as I'm not sure if updating bootstrap.ps1 would trigger a rebuild of the layer. CMD or ENTRYPOINT may be more appropriate than second RUN statement.
Additionally, current Dockerfile executes bootstrap.ps1 as root user. It might be better to have it execute as vscode user as that's the user available in the devcontainer.
test
Get-CFAccount -AccountName MyAccountName
or Get-CFAccount -AccountId abc123etc
. It probably shouldn't happen automatically though. There's no advantage if module is run in automation and may affect performance if there's a ton of resourcesA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.