1 - Install dnsmasq
sudo pacman -Syu
sudo pacman -S dnsmasq
2 - Configure dnsmasq
to resolve .test domains to localhost via creating /etc/NetworkManager/dnsmasq.d/prax
:
[Trigger] | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Clearing cache... | |
When = PostTransaction | |
Exec = /home/<user>/.local/bin/tools/removehook |
FROM ruby:2.3.1 | |
# Install dependencies | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
# Set an environment variable where the Rails app is installed to inside of Docker image: | |
ENV RAILS_ROOT /var/www/app_name | |
RUN mkdir -p $RAILS_ROOT | |
# Set working directory, where the commands will be ran: |
Hopefully helped another k8s newbie with the following. The question was, how do you update a single key in a secret in k8s? I don't know anything about secrets but I will probably want to know this in the future, so here we go.
First, to create a dummy secret:
apiVersion: v1
kind: Secret
metadata:
name: test-secret
data:
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
# Set nginx base image | |
FROM nginx | |
# Copy custom configuration file from the current directory | |
COPY nginx.conf /etc/nginx/nginx.conf |
# Using the web automation driver (watir-webdriver) through the tor network | |
# Automates webpage actions & bypasses the voting limit on polldaddy | |
# Casts a vote every 3 seconds for a total of 1000 votes | |
require 'watir-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
b = Watir::Browser.new :firefox, :profile => profile | |
#b = Watir::Browser.new :firefox | |
b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |