Articles

Déployer GitLab sur AWS EC2 avec Walrus

Déployer GitLab sur AWS EC2 avec Walrus est une tâche complexe, mais pas impossible. Découvrez comment le faire dans ce tutoriel !

  • An AWS Account with access to EC2 and VPC.

  • A Walrus Account.

  • H2 : Walrus, plateforme open-source de gestion d’applications, équipe votre équipe avec des modèles conçus pour optimiser les meilleures pratiques. Dans cet article, nous vous guiderons à travers le processus de création d’un modèle AWS GitLab et déploiement d’un serveur GitLab sur une instance EC2 AWS.

  • An AWS account with permissions to create and manage EC2 instances.

  • A Walrus account with access to the Walrus CLI.

  • Creating the Template

    The first step is to create a template for your GitLab server. This template will define the configuration of the server, such as the instance type, the operating system, and the software packages that will be installed. You can use the Walrus CLI to create a template from scratch, or you can use one of the pre-built templates provided by Walrus.

    Une plateforme de gestion d’applications open source appelée Walrus équipe votre équipe de modèles conçus pour optimiser les meilleures pratiques. Dans cet article, nous vous guiderons à travers le processus de création d’un modèle AWS GitLab et de déploiement d’un serveur GitLab sur une instance EC2 AWS.

    Prérequis

    1. Un dépôt GitHub ou GitLab pour stocker le modèle.

    2. Un compte AWS avec les autorisations nécessaires pour créer et gérer des instances EC2.

    3. Un compte Walrus avec accès à la ligne de commande Walrus.

    Créer le modèle

    La première étape consiste à créer un modèle pour votre serveur GitLab. Ce modèle définira la configuration du serveur, telles que le type d’instance, le système d’exploitation et les logiciels qui seront installés. Vous pouvez utiliser la ligne de commande Walrus pour créer un modèle à partir de zéro ou utiliser l’un des modèles préconstruits fournis par Walrus.

    Une fois que vous avez créé le modèle, vous pouvez le stocker dans votre dépôt GitHub ou GitLab. Vous pouvez ensuite utiliser le logiciel Walrus pour déployer le modèle sur votre instance EC2. Le logiciel Walrus vous permet de définir des paramètres tels que la taille de l’instance, le système d’exploitation et les packages logiciels à installer. Une fois que vous avez configuré tous les paramètres, vous pouvez cliquer sur le bouton « Déployer » pour déployer le modèle sur votre instance EC2.

    Une fois le déploiement terminé, vous pouvez accéder à votre serveur GitLab en utilisant l’adresse IP publique de votre instance EC2. Vous pouvez également utiliser le logiciel Walrus pour surveiller l’état de votre serveur GitLab et mettre à jour le modèle si nécessaire. Vous pouvez également utiliser le logiciel Walrus pour sauvegarder et restaurer votre serveur GitLab en cas de problème.

    Source de l’article sur DZONE

    Évolution des principaux outils de changement de schéma de base de données

    Depuis l’avènement des bases de données, les outils permettant leur changement de schéma ont connu une évolution considérable. Découvrons-en plus sur ce sujet !

    Migration de schéma de base de données peut être la zone la plus risquée dans le développement d’application – c’est difficile, risqué et douloureux. Les outils de migration de schéma de base de données existent pour soulager la douleur et ont fait des progrès considérables : des outils CLI de base aux outils GUI, des clients SQL simples à la plateforme de collaboration tout-en-un.

    These tools are great for testing and debugging, but they can be difficult to use for schema migration. You need to understand the syntax of the SQL language and the structure of the database. If you don’t have the necessary skills, you may end up writing inefficient queries or making mistakes in your schema changes.

    GUI Clients – MySQL Workbench / pgAdmin

    MySQL Workbench and pgAdmin are graphical user interface (GUI) clients for MySQL and PostgreSQL respectively. They provide a graphical representation of your database schema, allowing you to easily view and modify the structure. You can also use them to write and execute queries.

    These tools are great for schema migration, as they allow you to easily view and modify the structure of your database. However, they can be difficult to use for testing, as they don’t provide a way to easily execute multiple queries at once. Additionally, they can be slow when dealing with large databases.

    Collaboration Database Platforms

    Collaboration database platforms such as Liquibase, Flyway, and Redgate are designed to make database schema migration easier. These tools provide a graphical interface for viewing and modifying the structure of your database, as well as a way to execute multiple queries at once. They also provide version control, allowing you to easily track changes to your database schema.

    These tools are great for both testing and schema migration. They provide an easy way to view and modify the structure of your database, as well as a way to easily execute multiple queries at once. Additionally, they provide version control, allowing you to easily track changes to your database schema.

    Migration de schéma de base de données – un processus difficile et risqué

    La migration de schéma de base de données est peut-être la zone la plus risquée dans le développement d’applications – c’est difficile, risqué et douloureux. Des outils de migration de schéma de base de données existent pour soulager la douleur et ont fait des progrès considérables : des outils en ligne de commande (CLI) aux outils graphiques (GUI), des clients SQL simples aux plateformes de collaboration tout-en-un.

    Clients en ligne de commande (CLI) – MySQL / PSQL

    MySQL et psql sont les CLI natifs pour MySQL et PostgreSQL respectivement. Vous pouvez envoyer des commandes ou des requêtes directement aux serveurs MySQL ou PostgreSQL à partir de la ligne de commande.

    Ces outils sont excellents pour le test et le débogage, mais ils peuvent être difficiles à utiliser pour la migration de schéma. Vous devez comprendre la syntaxe du langage SQL et la structure de la base de données. Si vous n’avez pas les compétences nécessaires, vous risquez d’écrire des requêtes inefficaces ou de faire des erreurs dans vos modifications de schéma.

    Clients graphiques (GUI) – MySQL Workbench / pgAdmin

    MySQL Workbench et pgAdmin sont des clients d’interface utilisateur graphique (GUI) pour MySQL et PostgreSQL respectivement. Ils fournissent une représentation graphique de votre schéma de base de données, vous permettant de visualiser et de modifier facilement la structure. Vous pouvez également les utiliser pour écrire et exécuter des requêtes.

    Ces outils sont excellents pour la migration de schéma, car ils vous permettent de visualiser et de modifier facilement la structure de votre base de données. Cependant, ils peuvent être difficiles à utiliser pour le test, car ils ne fournissent pas un moyen d’exécuter facilement plusieurs requêtes en même temps. De plus, ils peu

    Source de l’article sur DZONE

    I’m not an anti-GUI person. In fact, I wrote three books about web GUI development with Java. However, I also like the command-line interface (CLI), especially text-based UIs. After a year of exploring MariaDB and the DevOps world, I got to discover and play with many text-based CLI tools that I didn’t know even existed. These tools are especially useful when connecting to remote servers that don’t have a GUI.

    One special CLI tool that I frequently use is the mariadb SQL client (or mysql in the MySQL world)—a CLI program used to connect to MariaDB-compatible databases. With it, you can send SQL queries and other commands to the database server.

    Source de l’article sur DZONE

    A couple of weeks before, in AWS re:invent, Amazon made a lot of innovative announcements, and one of the announcements was the AWS Application Composer service, which allows a user to drag and drop elements to the Canvas and quickly design and deploy serverless applications.   

    Introduction

    Application Composer service is in the preview phase as this is being written. It allows you to drag and drop a list of resources to a canvas, make connections between them and provide the required configuration. It allows you to design a workflow on the front end, and in the background, it generates the necessary code and template using the Serverless Architecture Model (SAM). SAM CLI is the tool you can use to quickly deploy this template to the AWS environment.

    Source de l’article sur DZONE


    Introduction

    Anypoint CLI is a scripting and command-line tool for both Anypoint Platform and Anypoint Platform PCE. We will be using Anypoint CLI commands for Anypoint Platform accounts, API Manager, CloudHub applications, design center projects, and exchange assets.

    Prerequisites

    Installation

    • Verify the npm version with the command npm -version
    • Anypoint CLI installation npm install -g anypoint-cli@latest

    Authentication

    You can configure Anypoint CLI authentication with username and password, client ID and client secret, or a bearer token. At least one method is required.

    Source de l’article sur DZONE


    Introduction

    In a previous post on this topic, we learned some basics about AWS CLI and how to install it on your machine. In this post, we will learn a few AWS CLI commands and we will also set up an s3 bucket as a static website that is publicly accessible.

    AWS CLI Syntax

    The following picture shows AWS CLI commands Syntax:

    Source de l’article sur DZONE

    If you’ve done any work with Vue.js and SASS (or SCSS from here on), you may have run into this very common issue: you have SCSS variables in one file that you want to make available to your Vue components.

    The good news is that the Vue CLI makes it incredibly easy to support writing SCSS, and with Vue’s single-file components, you can simply add lang="scss" to the <style> block (docs).

    Source de l’article sur DZONE

    In the AngularAndSpring project charts are displayed. To display the charts I have developed the ngx-simple-charts library. The design goal is to be D3.js based, have a typesafe Angular API, and be so simple and small that it can be migrated fast to new Angular versions. Currently the library supports line charts, bar charts might be supported in the future. 

    Creating and Configuring the Angular Library

    The Angular CLI can generate a library shell with this command: ng generate library <library_name>

    Source de l’article sur DZONE

    I was playing around with the CLI to see how I can incorporate it into demos and wanted to share a couple of things to remind people of its capabilities.

    1. Log In as a Human

    Note for interactive usage of the CLI, i.e., as a human, you can log in to the platform using your organization’s domain name and password if your organization is delegating authentication to your corporate IdP. Typing the command below will open a browser for you to log in:

    Source de l’article sur DZONE

    In this series:

    I am happy to see that many people are enthusiastic about this series and wish to make their IaC applications better with Ansible. What I intend to do is quite simple. I will write an Ansible playbook that uses the template module (see Templating with Jinja2) and a little magic of Jinja2 templates to load appropriate variables and configurations for each Terraform environment. Finally, I will use the Terraform CLI to deploy and delete the infrastructure.

    Source de l’article sur DZONE