Sign inSign up

solidnerd/cloudflare

By solidnerd

Updated over 9 years ago

A cloudflare ctt in a docker container

Image
1

100K+

solidnerd/cloudflare repository overview

docker-cloudflare

flarectl in a docker container for using it in hopefully secure way :).

Otherwise we should try to secure it more.

Quickstart

Create an directory to save your credentials

mkdir -p $HOME/.cloudflare

Now save you credentials in an env file to have them presisent

cat > $HOME/.cloudflare/env <<EOF
CF_API_KEY=abcdef1234567890
[email protected]
EOF

Run the container

docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare --help

Making an Alias for easy start

The intention of this container is that it's a tool container so let him a tool container. For this we create an alias to have an normal feeling that this is a "tool" and not a container :)

For a temporay state use the following command

alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'
Alias for Bash

This make it's persistent in your BASH Shell.

echo "alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'" >> $HOME/.bashrc
Alias for Zsh

This make it's persistent in your ZSH Shell.

echo "alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'" >> $HOME/.zshrc

Usage of flarectl

Create DNS Record
flarectl d c --zone example.com --name test.example.com --type CNAME --content example.com
Delete DNS Record
flarectl d d test.example.com

Tag summary

Content type

Image

Digest

Size

4.5 MB

Last updated

over 9 years ago

docker pull solidnerd/cloudflare