Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Move DRUPAL_SPRINTUSER_README to README.md (#191), fixes #179
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Nov 16, 2020
1 parent 84b3cb9 commit 6434a97
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 106 deletions.
15 changes: 2 additions & 13 deletions DRUPAL_MAINTAINER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,8 @@ Quicksprint is a basic toolkit to get people started with ddev and a Drupal code
There are two parts to this project:

1. A build of the tarball that a contribution event attendee needs (done by a maintainer using Linux or Mac OS, who should be reading this right now). The maintainer uses `package_drupal_script.sh` to create a tarball/zipball for sprint attendees to use.
2. A released tarball/zipball that has everything ready for an ordinary contributor to get set up fast. It includes a DRUPAL_SPRINTUSER_README.md to help them know what to do.
2. A released tarball/zipball that has everything ready for an ordinary contributor to get set up fast. It includes a README.md to help them know what to do.

Quicksprint uses [DDEV-Local](https://github.com/drud/ddev), docker, and a cloned Drupal repository to provide the tools to get people going quickly at a contribution event.

## Creating a Sprint Package

Quicksprint packages are built nightly and on tagged releases. Please download a tagged release from the GitHub [Releases page](https://github.com/drud/quicksprint/releases) rather than bothering to build it yourself. But of course, you could create a custom build using this source repository.

* To create a package you will need to
* Confirm Docker is running.
* Confirm docker-compose is available.
* Make sure you have these packages on your build machine: curl jq zcat composer perl zip bats. You can run the tests/sanetestbot.sh script to test.
* Then run the script `package_drupal_script.sh`

## Distributing a Sprint Package

Expand Down Expand Up @@ -51,6 +40,6 @@ There are some better tools to automate USB flash drive imaging, but your mileag

### Using your Sprint Package

* Your users will then download and unarchive the tarball or zipball.
* Your users will download and unarchive the tarball or zipball.
* Run install.sh from the unarchived directory; (Windows users must work in git-bash).
* After installation, users can start up an instance by cd-ing to ~/sprint and running ./start_sprint.sh.
87 changes: 0 additions & 87 deletions DRUPAL_SPRINTUSER_README.md

This file was deleted.

89 changes: 84 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,87 @@
# Quicksprint
# Drupal Contribution Package

Quicksprint is a basic toolkit to get people started with ddev and a Drupal or TYPO3 codebase. This is intended for contribution events where lots of people need to get started with the same environment in a short period of time.
This package contains tools to get you started contributing to Drupal:

Maintainers create a download package for event users. Event users just have to use that package, they don't have to understand anything about how it's created.
* Drupal, already cloned with git
* Docker Desktop for Mac or Windows
* DDEV-Local (ddev) development environment
* Additional tools including git for Windows

## Prerequisites

* A computer with 6gb memory or greater.
* Windows 10 or higher (with WSL2 and/or Hyper-V support), MacOS High Sierra or higher or a recent/stable Linux distribution.
* A robust code editor such as Visual Studio Code, Atom, PhpStorm or Netbeans (this may be provided as part of this package).

**⚠️ If your computer does not match a requirement, try the [Drupal quick-start](https://www.drupal.org/docs/8/install/quick-start-launch-a-local-demo-version-of-drupal-8-using-4-brief-steps)**! Now skip the steps below.

## Getting Started

1. [Get The Files](#get-the-files)
2. [Extract drupal_sprint_package](#extract-files)
3. [Install Docker and Other Requirements](#install)
4. [Open Terminal](#open-terminal)
5. [Install Contribution Tools](#install-tools)

<a name="get-the-files"></a>
### 1. Get The Files

Use one of the options below to get the files.

* GitHub - Download `drupal_sprint_package.<RELEASE>.zip` from https://github.com/drud/quicksprint/releases. Also download `quicksprint_thirdparty_installs.<RELEASE>>.zip` if you need Docker and/or Git.
* USB Drive (available at some conferences) - Copy drupal_sprint_package.RELEASE.zip and Docker installer for your Operating System from the USB drive to your Desktop.
* ResilioSync (available at some conferences) - Find the folder/directory that was downloaded and copy its contents to your Desktop.


<a name="extract-files"></a>
### 2. drupal_sprint_package directory

Extract the `drupal_sprint_package.<RELEASE>.zip` file, and open or browse the contents. This is the sprint package directory.

Extract the `quicksprint_thirdparty_installs.<RELEASE>.zip` if downloaded, and open or browse the contents and find the /installs folder. This is the third party installs directory.

<a name="install"></a>
### 3. Install Docker and Other Requirements

#### 3.1 Docker Desktop

* **Windows users install git:** First, install Git For Windows from the **third party installs** directory. The version here is newer than you might have on your computer if you already have it, so install if you don't have Git for Windows or have a version less than 2.21.0.
* **All users:** Find the Docker installer for your Operating System underneath the **third party installs** directory. It is important to install the version of Docker provided for compatibility with the tools.

Operating System | Docker Version | Installer
---------------- | -------------------------- | -----------------
Windows 10 | Docker Desktop for Windows | "Docker for Windows Installer.exe"
MacOS | Docker Desktop for Mac | Docker.dmg
Linux | Docker CE, docker-compose | See [Linux instructions](https://docs.docker.com/engine/install/#server)

**⚠️Docker Desktop for Windows**: Docker Desktop prompts you to enable WSL 2 during installation.

**⚠️All users** Additional Docker **installation** troubleshooting and installation documentation is available at [ddev docker instructions](https://ddev.readthedocs.io/en/stable/users/docker_installation/).

-**⚠️Linux users:** You'll probably need the [ddev docker instructions](https://ddev.readthedocs.io/en/stable/users/docker_installation/) to confirm your versions of docker ce and docker-compose to get docker properly setup.

**⚠️All users:** Now start the Docker application you installed. Docker may ask you to create a DockerHub user account, and you may ignore this prompt safely and continue on below.

<a name="open-terminal"></a>
### 4. Open Terminal

Open your Terminal application. If you already had a window open, **close it and open another one**.

Operating System | Docker Version | Program
---------------- | -------------------------- | ----------------
Windows 10 | Docker Desktop | Git Bash
MacOS | Docker Desktop | Terminal.app or your preferred terminal application
Linux | Docker CE, docker-compose | Your preferred terminal application

<a name="install-tools"></a>
### 5. Install Contribution Tools

1. Change directory to the `drupal_sprint_package` directory using the `cd` command:
* Example: Run `cd ~/Desktop/drupal_sprint_package`
2. Run the `install.sh` command and follow the prompts.
* Example: `./install.sh`
3. Follow the instructions that print out at the end of the previous command to create a sprint instance.
* Example: `cd ~/sprint` and `./start_sprint.sh`.

This may take a few minutes and will provide you with a set of URLs and further instructions for using your contribution environment.

* Read the [Drupal Sprintuser README](DRUPAL_SPRINTUSER_README.md) if you're a Drupal user using the pre-built package.
* Read the [Drupal Maintainer README](DRUPAL_MAINTAINER_README.md) if you're building or maintaining the package. This is a very small number of people, as the package is normally built by an automated system on CircleCI.
2 changes: 1 addition & 1 deletion tests/test_drupal_quicksprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SOURCE_TARBALL_LOCATION=~/tmp/drupal_sprint_package.${QUICKSPRINT_RELEASE}.tar.g
# Untar source tarball
tar -C "$UNTAR_LOCATION" -zxf ${SOURCE_TARBALL_LOCATION:-}

if [ ! -f "$UNTARRED_PACKAGE/DRUPAL_SPRINTUSER_README.md" -o ! -f "$UNTARRED_PACKAGE/COPYING" -o ! -d "$UNTARRED_PACKAGE/licenses" ]; then
if [ ! -f "$UNTARRED_PACKAGE/README.md" -o ! -f "$UNTARRED_PACKAGE/COPYING" -o ! -d "$UNTARRED_PACKAGE/licenses" ]; then
echo "Packaged documents are missing from package (in $UNTARRED_PACKAGE)"
exit 3
fi
Expand Down

0 comments on commit 6434a97

Please sign in to comment.