Skip to content

DOCSP-309: Copy button #2825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/includes/extracts-install-mongodb-manually.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ content: |
---
ref: install-mongodb-enterprise-manually-suse
content: |
.. class:: copyable-code
.. code-block:: sh

zypper install krb5 libcurl4 libldap-2_4-2 libopenssl1_0_0 cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5 libsensors4 libsnmp30 libwrap0

---
ref: install-mongodb-enterprise-manually-debian
content: |
.. class:: copyable-code
.. code-block:: sh

sudo apt-get install libcurl3 libgssapi-krb5-2 libldap-2.4-2 libpcap0.8 libpci3 libsasl2-2 libsensors4 libsnmp30 libssl1.0.0 libwrap0
Expand Down
1 change: 1 addition & 0 deletions source/includes/fact-redhat-6-dependencies.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. class:: copyable-code
.. code-block:: sh

yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5-libs net-snmp openssl libcurl
1 change: 1 addition & 0 deletions source/includes/fact-redhat-7-dependencies.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. class:: copyable-code
.. code-block:: sh

yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5-libs lm_sensors-libs net-snmp-agent-libs net-snmp openssl rpm-libs tcp_wrappers-libs libcurl
7 changes: 7 additions & 0 deletions source/includes/release-base.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,45 @@
ref: _curl-release
copyable: true
language: 'sh'
code: |
curl -O https://fastdl.mongodb.org/{{platform}}/mongodb-{{platform}}-{{builder}}-{{version}}.tgz
---
ref: _copy-release
copyable: true
language: 'sh'
code: |
mkdir -p mongodb
cp -R -n mongodb-{{platform}}-{{builder}}-{{version}}/ mongodb
---
ref: _copy-release-ent
copyable: true
language: 'sh'
code: |
mkdir -p mongodb
cp -R -n mongodb-{{platform}}-{{builder}}-enterprise-{{version}}/ mongodb
---
ref: _untar-release
copyable: true
language: 'sh'
code: |
tar -zxvf mongodb-{{platform}}-{{builder}}-{{version}}.tgz
---
ref: _untar-release-ent
copyable: true
language: 'sh'
code: |
tar -zxvf mongodb-{{platform}}-{{builder}}-enterprise-{{version}}.tgz
---
ref: _curl-release-ent
copyable: true
language: 'sh'
code: |
curl -O https://downloads.mongodb.com/{{platform}}/mongodb-{{platform}}-{{builder}}-enterprise-{{distro}}-{{version}}.tgz
tar -zxvf mongodb-{{platform}}-{{builder}}-enterprise-{{distro}}-{{version}}.tgz
cp -R -n mongodb-{{platform}}-{{builder}}-enterprise-{{distro}}-{{version}}/ mongodb
---
ref: _install-windows
copyable: true
language: powershell
code: |
msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl-{{version}}-signed.msi ^
Expand Down
3 changes: 3 additions & 0 deletions source/includes/steps-install-mongodb-enterprise-on-suse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ action:
Run the command appropriate for your version of SUSE:

SUSE 11
.. class:: copyable-code
.. code-block:: sh

sudo zypper addrepo --gpgcheck "https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/3.4/x86_64/" mongodb

SUSE 12
.. class:: copyable-code
.. code-block:: sh

sudo zypper addrepo --gpgcheck "https://repo.mongodb.com/zypper/suse/12/mongodb-enterprise/3.4/x86_64/" mongodb
Expand All @@ -27,6 +29,7 @@ action:
specify the release series in the repository configuration. For
example, to restrict your SUSE 11 system to the 2.6 release series,
use the following command:
copyable: true
language: sh
code: |
sudo zypper addrepo --no-gpgcheck https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/2.6/x86_64/ mongodb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@ action:

Ubuntu 12.04

.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu precise/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list

Ubuntu 14.04

.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list

Ubuntu 16.04

.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64,arm64,ppc64el,s390x ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
Expand All @@ -36,6 +39,7 @@ action:
2.4 or 2.6, you can specify the release series in the repository
configuration. For example, to restrict your system to the 2.6
release series, add the following repository:
copyable: true
language: sh
code: |
echo "deb http://repo.mongodb.com/apt/ubuntu "$(lsb_release -sc)"/mongodb-enterprise/2.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-2.6.list
Expand Down
2 changes: 2 additions & 0 deletions source/includes/steps-install-mongodb-on-red-hat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ action:
- heading: For the *latest* stable release of MongoDB
pre: |
Use the following repository file:
copyable: true
language: cfg
code: |
[mongodb-org-3.4]
Expand All @@ -30,6 +31,7 @@ action:
``/etc/yum.repos.d/mongodb-org-2.6.repo`` file to hold the
following configuration information for the MongoDB 2.6
repository:
copyable: true
language: cfg
code: |
[mongodb-org-2.6]
Expand Down
3 changes: 3 additions & 0 deletions source/includes/steps-install-mongodb-on-suse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ action:
Run the command appropriate for your version of SUSE:

SUSE 11
.. class:: copyable-code
.. code-block:: sh

sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/11/mongodb-org/3.4/x86_64/" mongodb

SUSE 12
.. class:: copyable-code
.. code-block:: sh

sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.4/x86_64/" mongodb
Expand All @@ -39,6 +41,7 @@ action:

For example, to restrict your SUSE 11 system to the 3.0 release
series, use the following command:
copyable: true
language: sh
code: |
sudo zypper addrepo --no-gpgcheck https://repo.mongodb.org/zypper/suse/11/mongodb-org/3.0/x86_64/ mongodb
Expand Down
4 changes: 4 additions & 0 deletions source/includes/steps-install-mongodb-on-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ action:
package consistency and authenticity by requiring that distributors
sign packages with GPG keys. Issue the following command to import the
`MongoDB public GPG Key <https://www.mongodb.org/static/pgp/server-3.4.asc>`_:
copyable: true
language: sh
code: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
Expand All @@ -20,16 +21,19 @@ action:
the command appropriate for your version of Ubuntu:

Ubuntu 12.04
.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

Ubuntu 14.04
.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

Ubuntu 16.04
.. class:: copyable-code
.. code-block:: sh

echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
Expand Down
5 changes: 5 additions & 0 deletions source/includes/steps-run-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ action:
``\data\db`` on the drive from which you start MongoDB. Create
this folder by running the following command in a
:guilabel:`Command Prompt`:
copyable: true
language: powershell
code: |
md \data\db
- pre: |
You can specify an alternate path for data files using the
:option:`--dbpath <mongod --dbpath>` option to
:program:`mongod.exe`, for example:
copyable: true
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --dbpath d:\test\mongodb\data
- pre: |
If your path includes spaces, enclose the entire path in double
quotes, for example:
copyable: true
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --dbpath "d:\test\mongo db data"
Expand All @@ -35,6 +38,7 @@ action:
pre: |
To start MongoDB, run :program:`mongod.exe`. For example, from the
:guilabel:`Command Prompt`:
copyable: true
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe"
Expand All @@ -57,6 +61,7 @@ pre: |
To connect to MongoDB through the :program:`mongo.exe <mongo>` shell,
open another :guilabel:`Command Prompt`.
action:
copyable: true
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.4\bin\mongo.exe
Expand Down