Tool for creating isolated Python environments
The common use-cases:
- Handling different versions of same libraries per each service
- Same plus no access to site-packages
pipeline { | |
agent any | |
triggers { | |
bitbucketPush() | |
} | |
tools { | |
jdk 'OpenJDK_1_8_0' | |
} |
pipeline { | |
agent any | |
tools { | |
maven 'Maven_3.6.2' | |
jdk 'Java_1.8u161' | |
} | |
environment { | |
GIT_VERSION = sh (returnStdout: true, script: 'git rev-parse HEAD | cut -c 1-10').trim() |
# Maintainer: Jakub Hajek, [email protected] | |
# | |
# docker stack deploy -c stack-elastic.yml elastic | |
# | |
# The stack creates Elasticsearch cluster consiting of | |
# - 3 dedicated master nodes in order to keep quorum | |
# - 4 dedicated data nodes to manage CRUD, | |
# | |
# Docker compose file to easily deploy Elasticsearch cluster 7.x on Docker Swarm cluster. |
package logging | |
import ( | |
"github.com/rs/zerolog" | |
"github.com/rs/zerolog/log" | |
"gopkg.in/natefinch/lumberjack.v2" | |
"os" | |
"path" | |
"io" | |
) |
#deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ focal main restricted | |
# deb-src http://br.archive.ubuntu.com/ubuntu/ focal main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted |
Tool for creating isolated Python environments
The common use-cases:
FROM openjdk:8-jdk-alpine | |
LABEL Miguel Doctor <[email protected]> | |
RUN apk add --no-cache curl tar bash procps | |
# Downloading and installing Maven | |
ARG MAVEN_VERSION=3.6.1 | |
ARG USER_HOME_DIR="/root" | |
ARG SHA=b4880fb7a3d81edd190a029440cdf17f308621af68475a4fe976296e71ff4a4b546dd6d8a58aaafba334d309cc11e638c52808a4b0e818fc0fd544226d952544 |
// *********************** | |
// | |
// Build and deploy different environments with jenkins pipeline | |
// | |
// Merge to develop -> triggers development release | |
// Merge to master without tag -> triggers staging release | |
// Merge to master with tag -> triggers staging and production release | |
// Production release requires manual approval on the jenkins job | |
// | |
// Configure jenkins pipeline project to pull tags! By default, tags are not pulled! |
# Copyright (c) 2018 Bao Nguyen <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all |
# AWS S3 bucket for static hosting | |
resource "aws_s3_bucket" "website" { | |
bucket = "${var.website_bucket_name}" | |
acl = "public-read" | |
tags { | |
Name = "Website" | |
Environment = "production" | |
} |